@flowselections/logistiek-engine 1.0.4 → 1.0.6

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/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/floridayDocuments.functions.d.ts +1161 -3
  29. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floridayPush.functions.d.ts +20689 -0
  31. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -0
  32. package/dist-lib/lib/floridayPush.functions.js +20 -0
  33. package/dist-lib/lib/floridayPush.server.d.ts +45 -0
  34. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -0
  35. package/dist-lib/lib/floridayPush.server.js +219 -0
  36. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  37. package/dist-lib/lib/handlers/logistics-tick.server.js +11 -0
  38. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1940 -35
  39. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/loadCarrierTaskSync.server.d.ts.map +1 -1
  41. package/dist-lib/lib/loadCarrierTaskSync.server.js +9 -0
  42. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +774 -2
  43. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +387 -1
  45. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  47. package/dist-lib/lib/modulePrompts.js +949 -911
  48. package/package.json +2 -2
@@ -51,12 +51,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
51
51
  signup_mail_purpose?: string;
52
52
  transport_register_days_before?: number;
53
53
  updated_at?: string;
54
- user_id
55
- /**
56
- * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
57
- * `done` waar is en schakelt dan door naar de volgende fase.
58
- */
59
- ?: string;
54
+ user_id?: string;
60
55
  };
61
56
  Relationships: [];
62
57
  };
@@ -5699,12 +5694,17 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
5699
5694
  attempts: number;
5700
5695
  connection_id: string;
5701
5696
  created_at: string;
5697
+ desired_available: boolean | null;
5702
5698
  gateway_attempt_id: string | null;
5703
5699
  id: string;
5704
5700
  last_error: string | null;
5701
+ locked_at: string | null;
5702
+ locked_by: string | null;
5703
+ next_attempt_at: string;
5705
5704
  number_of_pieces: number;
5706
5705
  sent_at: string | null;
5707
5706
  status: string;
5707
+ superseded_by: string | null;
5708
5708
  trade_item_id: string;
5709
5709
  updated_at: string;
5710
5710
  user_id: string;
@@ -5713,12 +5713,17 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
5713
5713
  attempts?: number;
5714
5714
  connection_id: string;
5715
5715
  created_at?: string;
5716
+ desired_available?: boolean | null;
5716
5717
  gateway_attempt_id?: string | null;
5717
5718
  id?: string;
5718
5719
  last_error?: string | null;
5720
+ locked_at?: string | null;
5721
+ locked_by?: string | null;
5722
+ next_attempt_at?: string;
5719
5723
  number_of_pieces?: number;
5720
5724
  sent_at?: string | null;
5721
5725
  status?: string;
5726
+ superseded_by?: string | null;
5722
5727
  trade_item_id: string;
5723
5728
  updated_at?: string;
5724
5729
  user_id: string;
@@ -5727,12 +5732,17 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
5727
5732
  attempts?: number;
5728
5733
  connection_id?: string;
5729
5734
  created_at?: string;
5735
+ desired_available?: boolean | null;
5730
5736
  gateway_attempt_id?: string | null;
5731
5737
  id?: string;
5732
5738
  last_error?: string | null;
5739
+ locked_at?: string | null;
5740
+ locked_by?: string | null;
5741
+ next_attempt_at?: string;
5733
5742
  number_of_pieces?: number;
5734
5743
  sent_at?: string | null;
5735
5744
  status?: string;
5745
+ superseded_by?: string | null;
5736
5746
  trade_item_id?: string;
5737
5747
  updated_at?: string;
5738
5748
  user_id?: string;
@@ -8481,6 +8491,69 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
8481
8491
  };
8482
8492
  Relationships: [];
8483
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
+ };
8484
8557
  logistics_formulas: {
8485
8558
  Row: {
8486
8559
  created_at: string;
@@ -9092,6 +9165,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9092
9165
  };
9093
9166
  logistics_tasks: {
9094
9167
  Row: {
9168
+ attempt_log: import("../integrations/supabase/types").Json;
9169
+ attempts: number;
9095
9170
  buffer_ref: string | null;
9096
9171
  claimed_at: string | null;
9097
9172
  claimed_by: string | null;
@@ -9101,6 +9176,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9101
9176
  due_at: string | null;
9102
9177
  error: string | null;
9103
9178
  id: string;
9179
+ last_error: string | null;
9180
+ next_attempt_at: string | null;
9104
9181
  order_ref: string;
9105
9182
  owner_module: string;
9106
9183
  payload: import("../integrations/supabase/types").Json;
@@ -9121,6 +9198,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9121
9198
  user_id: string;
9122
9199
  };
9123
9200
  Insert: {
9201
+ attempt_log?: import("../integrations/supabase/types").Json;
9202
+ attempts?: number;
9124
9203
  buffer_ref?: string | null;
9125
9204
  claimed_at?: string | null;
9126
9205
  claimed_by?: string | null;
@@ -9130,6 +9209,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9130
9209
  due_at?: string | null;
9131
9210
  error?: string | null;
9132
9211
  id?: string;
9212
+ last_error?: string | null;
9213
+ next_attempt_at?: string | null;
9133
9214
  order_ref: string;
9134
9215
  owner_module: string;
9135
9216
  payload?: import("../integrations/supabase/types").Json;
@@ -9150,6 +9231,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9150
9231
  user_id?: string;
9151
9232
  };
9152
9233
  Update: {
9234
+ attempt_log?: import("../integrations/supabase/types").Json;
9235
+ attempts?: number;
9153
9236
  buffer_ref?: string | null;
9154
9237
  claimed_at?: string | null;
9155
9238
  claimed_by?: string | null;
@@ -9159,6 +9242,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9159
9242
  due_at?: string | null;
9160
9243
  error?: string | null;
9161
9244
  id?: string;
9245
+ last_error?: string | null;
9246
+ next_attempt_at?: string | null;
9162
9247
  order_ref?: string;
9163
9248
  owner_module?: string;
9164
9249
  payload?: import("../integrations/supabase/types").Json;
@@ -10508,6 +10593,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
10508
10593
  };
10509
10594
  offer_settings: {
10510
10595
  Row: {
10596
+ brand_name: string | null;
10511
10597
  button_color: string;
10512
10598
  created_at: string;
10513
10599
  default_countries: string[];
@@ -10529,6 +10615,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
10529
10615
  updated_at: string;
10530
10616
  };
10531
10617
  Insert: {
10618
+ brand_name?: string | null;
10532
10619
  button_color?: string;
10533
10620
  created_at?: string;
10534
10621
  default_countries?: string[];
@@ -10550,6 +10637,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
10550
10637
  updated_at?: string;
10551
10638
  };
10552
10639
  Update: {
10640
+ brand_name?: string | null;
10553
10641
  button_color?: string;
10554
10642
  created_at?: string;
10555
10643
  default_countries?: string[];
@@ -12268,22 +12356,27 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
12268
12356
  created_at: string;
12269
12357
  documentnaam: string;
12270
12358
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12359
+ extern_job_id: string | null;
12271
12360
  foutmelding: string | null;
12272
12361
  gebruiker_id: string | null;
12273
12362
  gebruiker_naam: string;
12274
12363
  gestart_op: string | null;
12275
12364
  id: string;
12365
+ idempotentie_sleutel: string | null;
12276
12366
  is_herprint: boolean;
12277
12367
  kopieen: number;
12278
12368
  layout_id: string | null;
12279
12369
  opgepakt_op: string | null;
12280
12370
  paginas: number;
12281
12371
  payload: import("../integrations/supabase/types").Json;
12372
+ pdf_base64: string | null;
12373
+ pdf_url: string | null;
12282
12374
  pogingen: number;
12283
12375
  printer_id: string | null;
12284
12376
  render_html: string | null;
12285
12377
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12286
12378
  updated_at: string;
12379
+ volgende_poging: string | null;
12287
12380
  voltooid_op: string | null;
12288
12381
  };
12289
12382
  Insert: {
@@ -12292,22 +12385,27 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
12292
12385
  created_at?: string;
12293
12386
  documentnaam?: string;
12294
12387
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12388
+ extern_job_id?: string | null;
12295
12389
  foutmelding?: string | null;
12296
12390
  gebruiker_id?: string | null;
12297
12391
  gebruiker_naam?: string;
12298
12392
  gestart_op?: string | null;
12299
12393
  id?: string;
12394
+ idempotentie_sleutel?: string | null;
12300
12395
  is_herprint?: boolean;
12301
12396
  kopieen?: number;
12302
12397
  layout_id?: string | null;
12303
12398
  opgepakt_op?: string | null;
12304
12399
  paginas?: number;
12305
12400
  payload?: import("../integrations/supabase/types").Json;
12401
+ pdf_base64?: string | null;
12402
+ pdf_url?: string | null;
12306
12403
  pogingen?: number;
12307
12404
  printer_id?: string | null;
12308
12405
  render_html?: string | null;
12309
12406
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12310
12407
  updated_at?: string;
12408
+ volgende_poging?: string | null;
12311
12409
  voltooid_op?: string | null;
12312
12410
  };
12313
12411
  Update: {
@@ -12316,22 +12414,27 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
12316
12414
  created_at?: string;
12317
12415
  documentnaam?: string;
12318
12416
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12417
+ extern_job_id?: string | null;
12319
12418
  foutmelding?: string | null;
12320
12419
  gebruiker_id?: string | null;
12321
12420
  gebruiker_naam?: string;
12322
12421
  gestart_op?: string | null;
12323
12422
  id?: string;
12423
+ idempotentie_sleutel?: string | null;
12324
12424
  is_herprint?: boolean;
12325
12425
  kopieen?: number;
12326
12426
  layout_id?: string | null;
12327
12427
  opgepakt_op?: string | null;
12328
12428
  paginas?: number;
12329
12429
  payload?: import("../integrations/supabase/types").Json;
12430
+ pdf_base64?: string | null;
12431
+ pdf_url?: string | null;
12330
12432
  pogingen?: number;
12331
12433
  printer_id?: string | null;
12332
12434
  render_html?: string | null;
12333
12435
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12334
12436
  updated_at?: string;
12437
+ volgende_poging?: string | null;
12335
12438
  voltooid_op?: string | null;
12336
12439
  };
12337
12440
  Relationships: [{
@@ -12514,6 +12617,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
12514
12617
  agent_id: string | null;
12515
12618
  created_at: string;
12516
12619
  driver: string;
12620
+ extern_printer_id: string | null;
12517
12621
  id: string;
12518
12622
  ip_adres: string | null;
12519
12623
  laatst_gezien: string | null;
@@ -12535,6 +12639,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
12535
12639
  agent_id?: string | null;
12536
12640
  created_at?: string;
12537
12641
  driver?: string;
12642
+ extern_printer_id?: string | null;
12538
12643
  id?: string;
12539
12644
  ip_adres?: string | null;
12540
12645
  laatst_gezien?: string | null;
@@ -12556,6 +12661,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
12556
12661
  agent_id?: string | null;
12557
12662
  created_at?: string;
12558
12663
  driver?: string;
12664
+ extern_printer_id?: string | null;
12559
12665
  id?: string;
12560
12666
  ip_adres?: string | null;
12561
12667
  laatst_gezien?: string | null;
@@ -18160,6 +18266,125 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18160
18266
  };
18161
18267
  Returns: import("../integrations/supabase/types").Json;
18162
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
+ };
18163
18388
  claim_print_jobs: {
18164
18389
  Args: {
18165
18390
  _agent_id: string;
@@ -18171,22 +18396,27 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18171
18396
  created_at: string;
18172
18397
  documentnaam: string;
18173
18398
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18399
+ extern_job_id: string | null;
18174
18400
  foutmelding: string | null;
18175
18401
  gebruiker_id: string | null;
18176
18402
  gebruiker_naam: string;
18177
18403
  gestart_op: string | null;
18178
18404
  id: string;
18405
+ idempotentie_sleutel: string | null;
18179
18406
  is_herprint: boolean;
18180
18407
  kopieen: number;
18181
18408
  layout_id: string | null;
18182
18409
  opgepakt_op: string | null;
18183
18410
  paginas: number;
18184
18411
  payload: import("../integrations/supabase/types").Json;
18412
+ pdf_base64: string | null;
18413
+ pdf_url: string | null;
18185
18414
  pogingen: number;
18186
18415
  printer_id: string | null;
18187
18416
  render_html: string | null;
18188
18417
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18189
18418
  updated_at: string;
18419
+ volgende_poging: string | null;
18190
18420
  voltooid_op: string | null;
18191
18421
  }[];
18192
18422
  SetofOptions: {
@@ -18224,10 +18454,24 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18224
18454
  isSetofReturn: true;
18225
18455
  };
18226
18456
  };
18457
+ cleanup_floriday_stock_queue: {
18458
+ Args: never;
18459
+ Returns: undefined;
18460
+ };
18227
18461
  cleanup_old_bookings: {
18228
18462
  Args: never;
18229
18463
  Returns: undefined;
18230
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
+ };
18231
18475
  consume_bom_for_production: {
18232
18476
  Args: {
18233
18477
  p_connection_id: string;
@@ -18624,6 +18868,10 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18624
18868
  };
18625
18869
  Returns: number;
18626
18870
  };
18871
+ get_offer_branding: {
18872
+ Args: never;
18873
+ Returns: import("../integrations/supabase/types").Json;
18874
+ };
18627
18875
  get_offer_by_link_code: {
18628
18876
  Args: {
18629
18877
  p_code: string;
@@ -18915,6 +19163,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18915
19163
  p_worker?: string;
18916
19164
  };
18917
19165
  Returns: {
19166
+ attempt_log: import("../integrations/supabase/types").Json;
19167
+ attempts: number;
18918
19168
  buffer_ref: string | null;
18919
19169
  claimed_at: string | null;
18920
19170
  claimed_by: string | null;
@@ -18924,6 +19174,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18924
19174
  due_at: string | null;
18925
19175
  error: string | null;
18926
19176
  id: string;
19177
+ last_error: string | null;
19178
+ next_attempt_at: string | null;
18927
19179
  order_ref: string;
18928
19180
  owner_module: string;
18929
19181
  payload: import("../integrations/supabase/types").Json;
@@ -18956,6 +19208,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18956
19208
  p_worker?: string;
18957
19209
  };
18958
19210
  Returns: {
19211
+ attempt_log: import("../integrations/supabase/types").Json;
19212
+ attempts: number;
18959
19213
  buffer_ref: string | null;
18960
19214
  claimed_at: string | null;
18961
19215
  claimed_by: string | null;
@@ -18965,6 +19219,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18965
19219
  due_at: string | null;
18966
19220
  error: string | null;
18967
19221
  id: string;
19222
+ last_error: string | null;
19223
+ next_attempt_at: string | null;
18968
19224
  order_ref: string;
18969
19225
  owner_module: string;
18970
19226
  payload: import("../integrations/supabase/types").Json;
@@ -18997,6 +19253,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18997
19253
  p_task_id: string;
18998
19254
  };
18999
19255
  Returns: {
19256
+ attempt_log: import("../integrations/supabase/types").Json;
19257
+ attempts: number;
19000
19258
  buffer_ref: string | null;
19001
19259
  claimed_at: string | null;
19002
19260
  claimed_by: string | null;
@@ -19006,6 +19264,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
19006
19264
  due_at: string | null;
19007
19265
  error: string | null;
19008
19266
  id: string;
19267
+ last_error: string | null;
19268
+ next_attempt_at: string | null;
19009
19269
  order_ref: string;
19010
19270
  owner_module: string;
19011
19271
  payload: import("../integrations/supabase/types").Json;
@@ -19087,6 +19347,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
19087
19347
  p_task_id: string;
19088
19348
  };
19089
19349
  Returns: {
19350
+ attempt_log: import("../integrations/supabase/types").Json;
19351
+ attempts: number;
19090
19352
  buffer_ref: string | null;
19091
19353
  claimed_at: string | null;
19092
19354
  claimed_by: string | null;
@@ -19096,6 +19358,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
19096
19358
  due_at: string | null;
19097
19359
  error: string | null;
19098
19360
  id: string;
19361
+ last_error: string | null;
19362
+ next_attempt_at: string | null;
19099
19363
  order_ref: string;
19100
19364
  owner_module: string;
19101
19365
  payload: import("../integrations/supabase/types").Json;
@@ -19122,6 +19386,51 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
19122
19386
  isSetofReturn: false;
19123
19387
  };
19124
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
+ };
19125
19434
  logistics_live_carriers: {
19126
19435
  Args: {
19127
19436
  p_order_ref: string;
@@ -19469,6 +19778,15 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
19469
19778
  };
19470
19779
  Returns: string;
19471
19780
  };
19781
+ pick_active_printers: {
19782
+ Args: never;
19783
+ Returns: {
19784
+ id: string;
19785
+ locatie: string;
19786
+ naam: string;
19787
+ online: boolean;
19788
+ }[];
19789
+ };
19472
19790
  pick_claim_document: {
19473
19791
  Args: {
19474
19792
  _queue_item_id: string;
@@ -19655,6 +19973,52 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
19655
19973
  };
19656
19974
  Returns: undefined;
19657
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
+ };
19658
20022
  pick_station_dashboard: {
19659
20023
  Args: never;
19660
20024
  Returns: {
@@ -19845,10 +20209,20 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
19845
20209
  };
19846
20210
  Returns: import("../integrations/supabase/types").Json;
19847
20211
  };
20212
+ ruim_print_jobs_op: {
20213
+ Args: {
20214
+ _bewaar_dagen?: number;
20215
+ };
20216
+ Returns: number;
20217
+ };
19848
20218
  run_floriday_continuous_stock_sync: {
19849
20219
  Args: never;
19850
20220
  Returns: undefined;
19851
20221
  };
20222
+ run_logistics_tasks_dispatch: {
20223
+ Args: never;
20224
+ Returns: undefined;
20225
+ };
19852
20226
  run_twinfield_queue_tick: {
19853
20227
  Args: never;
19854
20228
  Returns: undefined;
@@ -20089,6 +20463,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20089
20463
  };
20090
20464
  Returns: number;
20091
20465
  };
20466
+ schedule_floriday_stock_queue_process: {
20467
+ Args: {
20468
+ p_apikey: string;
20469
+ p_url: string;
20470
+ };
20471
+ Returns: number;
20472
+ };
20092
20473
  schedule_floriday_token_refresh: {
20093
20474
  Args: {
20094
20475
  p_apikey: string;
@@ -20278,7 +20659,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20278
20659
  };
20279
20660
  Enums: {
20280
20661
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20281
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20662
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20282
20663
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20283
20664
  doc_orientation: "portrait" | "landscape";
20284
20665
  exact_env: "staging" | "live";
@@ -20359,12 +20740,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
20359
20740
  signup_mail_purpose?: string;
20360
20741
  transport_register_days_before?: number;
20361
20742
  updated_at?: string;
20362
- user_id
20363
- /**
20364
- * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
20365
- * `done` waar is en schakelt dan door naar de volgende fase.
20366
- */
20367
- ?: string;
20743
+ user_id?: string;
20368
20744
  };
20369
20745
  Relationships: [];
20370
20746
  };
@@ -26007,12 +26383,17 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
26007
26383
  attempts: number;
26008
26384
  connection_id: string;
26009
26385
  created_at: string;
26386
+ desired_available: boolean | null;
26010
26387
  gateway_attempt_id: string | null;
26011
26388
  id: string;
26012
26389
  last_error: string | null;
26390
+ locked_at: string | null;
26391
+ locked_by: string | null;
26392
+ next_attempt_at: string;
26013
26393
  number_of_pieces: number;
26014
26394
  sent_at: string | null;
26015
26395
  status: string;
26396
+ superseded_by: string | null;
26016
26397
  trade_item_id: string;
26017
26398
  updated_at: string;
26018
26399
  user_id: string;
@@ -26021,12 +26402,17 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
26021
26402
  attempts?: number;
26022
26403
  connection_id: string;
26023
26404
  created_at?: string;
26405
+ desired_available?: boolean | null;
26024
26406
  gateway_attempt_id?: string | null;
26025
26407
  id?: string;
26026
26408
  last_error?: string | null;
26409
+ locked_at?: string | null;
26410
+ locked_by?: string | null;
26411
+ next_attempt_at?: string;
26027
26412
  number_of_pieces?: number;
26028
26413
  sent_at?: string | null;
26029
26414
  status?: string;
26415
+ superseded_by?: string | null;
26030
26416
  trade_item_id: string;
26031
26417
  updated_at?: string;
26032
26418
  user_id: string;
@@ -26035,12 +26421,17 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
26035
26421
  attempts?: number;
26036
26422
  connection_id?: string;
26037
26423
  created_at?: string;
26424
+ desired_available?: boolean | null;
26038
26425
  gateway_attempt_id?: string | null;
26039
26426
  id?: string;
26040
26427
  last_error?: string | null;
26428
+ locked_at?: string | null;
26429
+ locked_by?: string | null;
26430
+ next_attempt_at?: string;
26041
26431
  number_of_pieces?: number;
26042
26432
  sent_at?: string | null;
26043
26433
  status?: string;
26434
+ superseded_by?: string | null;
26044
26435
  trade_item_id?: string;
26045
26436
  updated_at?: string;
26046
26437
  user_id?: string;
@@ -28789,6 +29180,69 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
28789
29180
  };
28790
29181
  Relationships: [];
28791
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
+ };
28792
29246
  logistics_formulas: {
28793
29247
  Row: {
28794
29248
  created_at: string;
@@ -29400,6 +29854,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
29400
29854
  };
29401
29855
  logistics_tasks: {
29402
29856
  Row: {
29857
+ attempt_log: import("../integrations/supabase/types").Json;
29858
+ attempts: number;
29403
29859
  buffer_ref: string | null;
29404
29860
  claimed_at: string | null;
29405
29861
  claimed_by: string | null;
@@ -29409,6 +29865,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
29409
29865
  due_at: string | null;
29410
29866
  error: string | null;
29411
29867
  id: string;
29868
+ last_error: string | null;
29869
+ next_attempt_at: string | null;
29412
29870
  order_ref: string;
29413
29871
  owner_module: string;
29414
29872
  payload: import("../integrations/supabase/types").Json;
@@ -29429,6 +29887,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
29429
29887
  user_id: string;
29430
29888
  };
29431
29889
  Insert: {
29890
+ attempt_log?: import("../integrations/supabase/types").Json;
29891
+ attempts?: number;
29432
29892
  buffer_ref?: string | null;
29433
29893
  claimed_at?: string | null;
29434
29894
  claimed_by?: string | null;
@@ -29438,6 +29898,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
29438
29898
  due_at?: string | null;
29439
29899
  error?: string | null;
29440
29900
  id?: string;
29901
+ last_error?: string | null;
29902
+ next_attempt_at?: string | null;
29441
29903
  order_ref: string;
29442
29904
  owner_module: string;
29443
29905
  payload?: import("../integrations/supabase/types").Json;
@@ -29458,6 +29920,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
29458
29920
  user_id?: string;
29459
29921
  };
29460
29922
  Update: {
29923
+ attempt_log?: import("../integrations/supabase/types").Json;
29924
+ attempts?: number;
29461
29925
  buffer_ref?: string | null;
29462
29926
  claimed_at?: string | null;
29463
29927
  claimed_by?: string | null;
@@ -29467,6 +29931,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
29467
29931
  due_at?: string | null;
29468
29932
  error?: string | null;
29469
29933
  id?: string;
29934
+ last_error?: string | null;
29935
+ next_attempt_at?: string | null;
29470
29936
  order_ref?: string;
29471
29937
  owner_module?: string;
29472
29938
  payload?: import("../integrations/supabase/types").Json;
@@ -30816,6 +31282,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
30816
31282
  };
30817
31283
  offer_settings: {
30818
31284
  Row: {
31285
+ brand_name: string | null;
30819
31286
  button_color: string;
30820
31287
  created_at: string;
30821
31288
  default_countries: string[];
@@ -30837,6 +31304,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
30837
31304
  updated_at: string;
30838
31305
  };
30839
31306
  Insert: {
31307
+ brand_name?: string | null;
30840
31308
  button_color?: string;
30841
31309
  created_at?: string;
30842
31310
  default_countries?: string[];
@@ -30858,6 +31326,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
30858
31326
  updated_at?: string;
30859
31327
  };
30860
31328
  Update: {
31329
+ brand_name?: string | null;
30861
31330
  button_color?: string;
30862
31331
  created_at?: string;
30863
31332
  default_countries?: string[];
@@ -32576,22 +33045,27 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
32576
33045
  created_at: string;
32577
33046
  documentnaam: string;
32578
33047
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33048
+ extern_job_id: string | null;
32579
33049
  foutmelding: string | null;
32580
33050
  gebruiker_id: string | null;
32581
33051
  gebruiker_naam: string;
32582
33052
  gestart_op: string | null;
32583
33053
  id: string;
33054
+ idempotentie_sleutel: string | null;
32584
33055
  is_herprint: boolean;
32585
33056
  kopieen: number;
32586
33057
  layout_id: string | null;
32587
33058
  opgepakt_op: string | null;
32588
33059
  paginas: number;
32589
33060
  payload: import("../integrations/supabase/types").Json;
33061
+ pdf_base64: string | null;
33062
+ pdf_url: string | null;
32590
33063
  pogingen: number;
32591
33064
  printer_id: string | null;
32592
33065
  render_html: string | null;
32593
33066
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32594
33067
  updated_at: string;
33068
+ volgende_poging: string | null;
32595
33069
  voltooid_op: string | null;
32596
33070
  };
32597
33071
  Insert: {
@@ -32600,22 +33074,27 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
32600
33074
  created_at?: string;
32601
33075
  documentnaam?: string;
32602
33076
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33077
+ extern_job_id?: string | null;
32603
33078
  foutmelding?: string | null;
32604
33079
  gebruiker_id?: string | null;
32605
33080
  gebruiker_naam?: string;
32606
33081
  gestart_op?: string | null;
32607
33082
  id?: string;
33083
+ idempotentie_sleutel?: string | null;
32608
33084
  is_herprint?: boolean;
32609
33085
  kopieen?: number;
32610
33086
  layout_id?: string | null;
32611
33087
  opgepakt_op?: string | null;
32612
33088
  paginas?: number;
32613
33089
  payload?: import("../integrations/supabase/types").Json;
33090
+ pdf_base64?: string | null;
33091
+ pdf_url?: string | null;
32614
33092
  pogingen?: number;
32615
33093
  printer_id?: string | null;
32616
33094
  render_html?: string | null;
32617
33095
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32618
33096
  updated_at?: string;
33097
+ volgende_poging?: string | null;
32619
33098
  voltooid_op?: string | null;
32620
33099
  };
32621
33100
  Update: {
@@ -32624,22 +33103,27 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
32624
33103
  created_at?: string;
32625
33104
  documentnaam?: string;
32626
33105
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33106
+ extern_job_id?: string | null;
32627
33107
  foutmelding?: string | null;
32628
33108
  gebruiker_id?: string | null;
32629
33109
  gebruiker_naam?: string;
32630
33110
  gestart_op?: string | null;
32631
33111
  id?: string;
33112
+ idempotentie_sleutel?: string | null;
32632
33113
  is_herprint?: boolean;
32633
33114
  kopieen?: number;
32634
33115
  layout_id?: string | null;
32635
33116
  opgepakt_op?: string | null;
32636
33117
  paginas?: number;
32637
33118
  payload?: import("../integrations/supabase/types").Json;
33119
+ pdf_base64?: string | null;
33120
+ pdf_url?: string | null;
32638
33121
  pogingen?: number;
32639
33122
  printer_id?: string | null;
32640
33123
  render_html?: string | null;
32641
33124
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32642
33125
  updated_at?: string;
33126
+ volgende_poging?: string | null;
32643
33127
  voltooid_op?: string | null;
32644
33128
  };
32645
33129
  Relationships: [{
@@ -32822,6 +33306,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
32822
33306
  agent_id: string | null;
32823
33307
  created_at: string;
32824
33308
  driver: string;
33309
+ extern_printer_id: string | null;
32825
33310
  id: string;
32826
33311
  ip_adres: string | null;
32827
33312
  laatst_gezien: string | null;
@@ -32843,6 +33328,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
32843
33328
  agent_id?: string | null;
32844
33329
  created_at?: string;
32845
33330
  driver?: string;
33331
+ extern_printer_id?: string | null;
32846
33332
  id?: string;
32847
33333
  ip_adres?: string | null;
32848
33334
  laatst_gezien?: string | null;
@@ -32864,6 +33350,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
32864
33350
  agent_id?: string | null;
32865
33351
  created_at?: string;
32866
33352
  driver?: string;
33353
+ extern_printer_id?: string | null;
32867
33354
  id?: string;
32868
33355
  ip_adres?: string | null;
32869
33356
  laatst_gezien?: string | null;
@@ -38468,6 +38955,125 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
38468
38955
  };
38469
38956
  Returns: import("../integrations/supabase/types").Json;
38470
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
+ };
38471
39077
  claim_print_jobs: {
38472
39078
  Args: {
38473
39079
  _agent_id: string;
@@ -38479,22 +39085,27 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
38479
39085
  created_at: string;
38480
39086
  documentnaam: string;
38481
39087
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39088
+ extern_job_id: string | null;
38482
39089
  foutmelding: string | null;
38483
39090
  gebruiker_id: string | null;
38484
39091
  gebruiker_naam: string;
38485
39092
  gestart_op: string | null;
38486
39093
  id: string;
39094
+ idempotentie_sleutel: string | null;
38487
39095
  is_herprint: boolean;
38488
39096
  kopieen: number;
38489
39097
  layout_id: string | null;
38490
39098
  opgepakt_op: string | null;
38491
39099
  paginas: number;
38492
39100
  payload: import("../integrations/supabase/types").Json;
39101
+ pdf_base64: string | null;
39102
+ pdf_url: string | null;
38493
39103
  pogingen: number;
38494
39104
  printer_id: string | null;
38495
39105
  render_html: string | null;
38496
39106
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38497
39107
  updated_at: string;
39108
+ volgende_poging: string | null;
38498
39109
  voltooid_op: string | null;
38499
39110
  }[];
38500
39111
  SetofOptions: {
@@ -38532,10 +39143,24 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
38532
39143
  isSetofReturn: true;
38533
39144
  };
38534
39145
  };
39146
+ cleanup_floriday_stock_queue: {
39147
+ Args: never;
39148
+ Returns: undefined;
39149
+ };
38535
39150
  cleanup_old_bookings: {
38536
39151
  Args: never;
38537
39152
  Returns: undefined;
38538
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
+ };
38539
39164
  consume_bom_for_production: {
38540
39165
  Args: {
38541
39166
  p_connection_id: string;
@@ -38932,6 +39557,10 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
38932
39557
  };
38933
39558
  Returns: number;
38934
39559
  };
39560
+ get_offer_branding: {
39561
+ Args: never;
39562
+ Returns: import("../integrations/supabase/types").Json;
39563
+ };
38935
39564
  get_offer_by_link_code: {
38936
39565
  Args: {
38937
39566
  p_code: string;
@@ -39223,6 +39852,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
39223
39852
  p_worker?: string;
39224
39853
  };
39225
39854
  Returns: {
39855
+ attempt_log: import("../integrations/supabase/types").Json;
39856
+ attempts: number;
39226
39857
  buffer_ref: string | null;
39227
39858
  claimed_at: string | null;
39228
39859
  claimed_by: string | null;
@@ -39232,6 +39863,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
39232
39863
  due_at: string | null;
39233
39864
  error: string | null;
39234
39865
  id: string;
39866
+ last_error: string | null;
39867
+ next_attempt_at: string | null;
39235
39868
  order_ref: string;
39236
39869
  owner_module: string;
39237
39870
  payload: import("../integrations/supabase/types").Json;
@@ -39264,6 +39897,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
39264
39897
  p_worker?: string;
39265
39898
  };
39266
39899
  Returns: {
39900
+ attempt_log: import("../integrations/supabase/types").Json;
39901
+ attempts: number;
39267
39902
  buffer_ref: string | null;
39268
39903
  claimed_at: string | null;
39269
39904
  claimed_by: string | null;
@@ -39273,6 +39908,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
39273
39908
  due_at: string | null;
39274
39909
  error: string | null;
39275
39910
  id: string;
39911
+ last_error: string | null;
39912
+ next_attempt_at: string | null;
39276
39913
  order_ref: string;
39277
39914
  owner_module: string;
39278
39915
  payload: import("../integrations/supabase/types").Json;
@@ -39305,6 +39942,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
39305
39942
  p_task_id: string;
39306
39943
  };
39307
39944
  Returns: {
39945
+ attempt_log: import("../integrations/supabase/types").Json;
39946
+ attempts: number;
39308
39947
  buffer_ref: string | null;
39309
39948
  claimed_at: string | null;
39310
39949
  claimed_by: string | null;
@@ -39314,6 +39953,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
39314
39953
  due_at: string | null;
39315
39954
  error: string | null;
39316
39955
  id: string;
39956
+ last_error: string | null;
39957
+ next_attempt_at: string | null;
39317
39958
  order_ref: string;
39318
39959
  owner_module: string;
39319
39960
  payload: import("../integrations/supabase/types").Json;
@@ -39395,6 +40036,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
39395
40036
  p_task_id: string;
39396
40037
  };
39397
40038
  Returns: {
40039
+ attempt_log: import("../integrations/supabase/types").Json;
40040
+ attempts: number;
39398
40041
  buffer_ref: string | null;
39399
40042
  claimed_at: string | null;
39400
40043
  claimed_by: string | null;
@@ -39404,6 +40047,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
39404
40047
  due_at: string | null;
39405
40048
  error: string | null;
39406
40049
  id: string;
40050
+ last_error: string | null;
40051
+ next_attempt_at: string | null;
39407
40052
  order_ref: string;
39408
40053
  owner_module: string;
39409
40054
  payload: import("../integrations/supabase/types").Json;
@@ -39430,6 +40075,51 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
39430
40075
  isSetofReturn: false;
39431
40076
  };
39432
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
+ };
39433
40123
  logistics_live_carriers: {
39434
40124
  Args: {
39435
40125
  p_order_ref: string;
@@ -39777,6 +40467,15 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
39777
40467
  };
39778
40468
  Returns: string;
39779
40469
  };
40470
+ pick_active_printers: {
40471
+ Args: never;
40472
+ Returns: {
40473
+ id: string;
40474
+ locatie: string;
40475
+ naam: string;
40476
+ online: boolean;
40477
+ }[];
40478
+ };
39780
40479
  pick_claim_document: {
39781
40480
  Args: {
39782
40481
  _queue_item_id: string;
@@ -39963,6 +40662,52 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
39963
40662
  };
39964
40663
  Returns: undefined;
39965
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
+ };
39966
40711
  pick_station_dashboard: {
39967
40712
  Args: never;
39968
40713
  Returns: {
@@ -40153,10 +40898,20 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
40153
40898
  };
40154
40899
  Returns: import("../integrations/supabase/types").Json;
40155
40900
  };
40901
+ ruim_print_jobs_op: {
40902
+ Args: {
40903
+ _bewaar_dagen?: number;
40904
+ };
40905
+ Returns: number;
40906
+ };
40156
40907
  run_floriday_continuous_stock_sync: {
40157
40908
  Args: never;
40158
40909
  Returns: undefined;
40159
40910
  };
40911
+ run_logistics_tasks_dispatch: {
40912
+ Args: never;
40913
+ Returns: undefined;
40914
+ };
40160
40915
  run_twinfield_queue_tick: {
40161
40916
  Args: never;
40162
40917
  Returns: undefined;
@@ -40397,6 +41152,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
40397
41152
  };
40398
41153
  Returns: number;
40399
41154
  };
41155
+ schedule_floriday_stock_queue_process: {
41156
+ Args: {
41157
+ p_apikey: string;
41158
+ p_url: string;
41159
+ };
41160
+ Returns: number;
41161
+ };
40400
41162
  schedule_floriday_token_refresh: {
40401
41163
  Args: {
40402
41164
  p_apikey: string;
@@ -40586,7 +41348,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
40586
41348
  };
40587
41349
  Enums: {
40588
41350
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40589
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
41351
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40590
41352
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40591
41353
  doc_orientation: "portrait" | "landscape";
40592
41354
  exact_env: "staging" | "live";
@@ -40671,12 +41433,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
40671
41433
  signup_mail_purpose?: string;
40672
41434
  transport_register_days_before?: number;
40673
41435
  updated_at?: string;
40674
- user_id
40675
- /**
40676
- * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
40677
- * `done` waar is en schakelt dan door naar de volgende fase.
40678
- */
40679
- ?: string;
41436
+ user_id?: string;
40680
41437
  };
40681
41438
  Relationships: [];
40682
41439
  };
@@ -46319,12 +47076,17 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
46319
47076
  attempts: number;
46320
47077
  connection_id: string;
46321
47078
  created_at: string;
47079
+ desired_available: boolean | null;
46322
47080
  gateway_attempt_id: string | null;
46323
47081
  id: string;
46324
47082
  last_error: string | null;
47083
+ locked_at: string | null;
47084
+ locked_by: string | null;
47085
+ next_attempt_at: string;
46325
47086
  number_of_pieces: number;
46326
47087
  sent_at: string | null;
46327
47088
  status: string;
47089
+ superseded_by: string | null;
46328
47090
  trade_item_id: string;
46329
47091
  updated_at: string;
46330
47092
  user_id: string;
@@ -46333,12 +47095,17 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
46333
47095
  attempts?: number;
46334
47096
  connection_id: string;
46335
47097
  created_at?: string;
47098
+ desired_available?: boolean | null;
46336
47099
  gateway_attempt_id?: string | null;
46337
47100
  id?: string;
46338
47101
  last_error?: string | null;
47102
+ locked_at?: string | null;
47103
+ locked_by?: string | null;
47104
+ next_attempt_at?: string;
46339
47105
  number_of_pieces?: number;
46340
47106
  sent_at?: string | null;
46341
47107
  status?: string;
47108
+ superseded_by?: string | null;
46342
47109
  trade_item_id: string;
46343
47110
  updated_at?: string;
46344
47111
  user_id: string;
@@ -46347,12 +47114,17 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
46347
47114
  attempts?: number;
46348
47115
  connection_id?: string;
46349
47116
  created_at?: string;
47117
+ desired_available?: boolean | null;
46350
47118
  gateway_attempt_id?: string | null;
46351
47119
  id?: string;
46352
47120
  last_error?: string | null;
47121
+ locked_at?: string | null;
47122
+ locked_by?: string | null;
47123
+ next_attempt_at?: string;
46353
47124
  number_of_pieces?: number;
46354
47125
  sent_at?: string | null;
46355
47126
  status?: string;
47127
+ superseded_by?: string | null;
46356
47128
  trade_item_id?: string;
46357
47129
  updated_at?: string;
46358
47130
  user_id?: string;
@@ -49101,6 +49873,69 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
49101
49873
  };
49102
49874
  Relationships: [];
49103
49875
  };
49876
+ logistics_floriday_pushes: {
49877
+ Row: {
49878
+ attempts: number;
49879
+ created_at: string;
49880
+ first_queued_at: string;
49881
+ fulfillment_order_id: string | null;
49882
+ id: string;
49883
+ last_error: string | null;
49884
+ last_error_at: string | null;
49885
+ last_sent_hash: string | null;
49886
+ locked_by: string | null;
49887
+ locked_until: string | null;
49888
+ next_attempt_at: string;
49889
+ order_ref: string;
49890
+ payload: import("../integrations/supabase/types").Json;
49891
+ payload_hash: string | null;
49892
+ revision: number;
49893
+ sent_at: string | null;
49894
+ status: string;
49895
+ updated_at: string;
49896
+ };
49897
+ Insert: {
49898
+ attempts?: number;
49899
+ created_at?: string;
49900
+ first_queued_at?: string;
49901
+ fulfillment_order_id?: string | null;
49902
+ id?: string;
49903
+ last_error?: string | null;
49904
+ last_error_at?: string | null;
49905
+ last_sent_hash?: string | null;
49906
+ locked_by?: string | null;
49907
+ locked_until?: string | null;
49908
+ next_attempt_at?: string;
49909
+ order_ref: string;
49910
+ payload?: import("../integrations/supabase/types").Json;
49911
+ payload_hash?: string | null;
49912
+ revision?: number;
49913
+ sent_at?: string | null;
49914
+ status?: string;
49915
+ updated_at?: string;
49916
+ };
49917
+ Update: {
49918
+ attempts?: number;
49919
+ created_at?: string;
49920
+ first_queued_at?: string;
49921
+ fulfillment_order_id?: string | null;
49922
+ id?: string;
49923
+ last_error?: string | null;
49924
+ last_error_at?: string | null;
49925
+ last_sent_hash?: string | null;
49926
+ locked_by?: string | null;
49927
+ locked_until?: string | null;
49928
+ next_attempt_at?: string;
49929
+ order_ref?: string;
49930
+ payload?: import("../integrations/supabase/types").Json;
49931
+ payload_hash?: string | null;
49932
+ revision?: number;
49933
+ sent_at?: string | null;
49934
+ status?: string;
49935
+ updated_at?: string;
49936
+ };
49937
+ Relationships: [];
49938
+ };
49104
49939
  logistics_formulas: {
49105
49940
  Row: {
49106
49941
  created_at: string;
@@ -49712,6 +50547,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
49712
50547
  };
49713
50548
  logistics_tasks: {
49714
50549
  Row: {
50550
+ attempt_log: import("../integrations/supabase/types").Json;
50551
+ attempts: number;
49715
50552
  buffer_ref: string | null;
49716
50553
  claimed_at: string | null;
49717
50554
  claimed_by: string | null;
@@ -49721,6 +50558,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
49721
50558
  due_at: string | null;
49722
50559
  error: string | null;
49723
50560
  id: string;
50561
+ last_error: string | null;
50562
+ next_attempt_at: string | null;
49724
50563
  order_ref: string;
49725
50564
  owner_module: string;
49726
50565
  payload: import("../integrations/supabase/types").Json;
@@ -49741,6 +50580,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
49741
50580
  user_id: string;
49742
50581
  };
49743
50582
  Insert: {
50583
+ attempt_log?: import("../integrations/supabase/types").Json;
50584
+ attempts?: number;
49744
50585
  buffer_ref?: string | null;
49745
50586
  claimed_at?: string | null;
49746
50587
  claimed_by?: string | null;
@@ -49750,6 +50591,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
49750
50591
  due_at?: string | null;
49751
50592
  error?: string | null;
49752
50593
  id?: string;
50594
+ last_error?: string | null;
50595
+ next_attempt_at?: string | null;
49753
50596
  order_ref: string;
49754
50597
  owner_module: string;
49755
50598
  payload?: import("../integrations/supabase/types").Json;
@@ -49770,6 +50613,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
49770
50613
  user_id?: string;
49771
50614
  };
49772
50615
  Update: {
50616
+ attempt_log?: import("../integrations/supabase/types").Json;
50617
+ attempts?: number;
49773
50618
  buffer_ref?: string | null;
49774
50619
  claimed_at?: string | null;
49775
50620
  claimed_by?: string | null;
@@ -49779,6 +50624,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
49779
50624
  due_at?: string | null;
49780
50625
  error?: string | null;
49781
50626
  id?: string;
50627
+ last_error?: string | null;
50628
+ next_attempt_at?: string | null;
49782
50629
  order_ref?: string;
49783
50630
  owner_module?: string;
49784
50631
  payload?: import("../integrations/supabase/types").Json;
@@ -51128,6 +51975,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
51128
51975
  };
51129
51976
  offer_settings: {
51130
51977
  Row: {
51978
+ brand_name: string | null;
51131
51979
  button_color: string;
51132
51980
  created_at: string;
51133
51981
  default_countries: string[];
@@ -51149,6 +51997,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
51149
51997
  updated_at: string;
51150
51998
  };
51151
51999
  Insert: {
52000
+ brand_name?: string | null;
51152
52001
  button_color?: string;
51153
52002
  created_at?: string;
51154
52003
  default_countries?: string[];
@@ -51170,6 +52019,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
51170
52019
  updated_at?: string;
51171
52020
  };
51172
52021
  Update: {
52022
+ brand_name?: string | null;
51173
52023
  button_color?: string;
51174
52024
  created_at?: string;
51175
52025
  default_countries?: string[];
@@ -52888,22 +53738,27 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
52888
53738
  created_at: string;
52889
53739
  documentnaam: string;
52890
53740
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
53741
+ extern_job_id: string | null;
52891
53742
  foutmelding: string | null;
52892
53743
  gebruiker_id: string | null;
52893
53744
  gebruiker_naam: string;
52894
53745
  gestart_op: string | null;
52895
53746
  id: string;
53747
+ idempotentie_sleutel: string | null;
52896
53748
  is_herprint: boolean;
52897
53749
  kopieen: number;
52898
53750
  layout_id: string | null;
52899
53751
  opgepakt_op: string | null;
52900
53752
  paginas: number;
52901
53753
  payload: import("../integrations/supabase/types").Json;
53754
+ pdf_base64: string | null;
53755
+ pdf_url: string | null;
52902
53756
  pogingen: number;
52903
53757
  printer_id: string | null;
52904
53758
  render_html: string | null;
52905
53759
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
52906
53760
  updated_at: string;
53761
+ volgende_poging: string | null;
52907
53762
  voltooid_op: string | null;
52908
53763
  };
52909
53764
  Insert: {
@@ -52912,22 +53767,27 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
52912
53767
  created_at?: string;
52913
53768
  documentnaam?: string;
52914
53769
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
53770
+ extern_job_id?: string | null;
52915
53771
  foutmelding?: string | null;
52916
53772
  gebruiker_id?: string | null;
52917
53773
  gebruiker_naam?: string;
52918
53774
  gestart_op?: string | null;
52919
53775
  id?: string;
53776
+ idempotentie_sleutel?: string | null;
52920
53777
  is_herprint?: boolean;
52921
53778
  kopieen?: number;
52922
53779
  layout_id?: string | null;
52923
53780
  opgepakt_op?: string | null;
52924
53781
  paginas?: number;
52925
53782
  payload?: import("../integrations/supabase/types").Json;
53783
+ pdf_base64?: string | null;
53784
+ pdf_url?: string | null;
52926
53785
  pogingen?: number;
52927
53786
  printer_id?: string | null;
52928
53787
  render_html?: string | null;
52929
53788
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
52930
53789
  updated_at?: string;
53790
+ volgende_poging?: string | null;
52931
53791
  voltooid_op?: string | null;
52932
53792
  };
52933
53793
  Update: {
@@ -52936,22 +53796,27 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
52936
53796
  created_at?: string;
52937
53797
  documentnaam?: string;
52938
53798
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
53799
+ extern_job_id?: string | null;
52939
53800
  foutmelding?: string | null;
52940
53801
  gebruiker_id?: string | null;
52941
53802
  gebruiker_naam?: string;
52942
53803
  gestart_op?: string | null;
52943
53804
  id?: string;
53805
+ idempotentie_sleutel?: string | null;
52944
53806
  is_herprint?: boolean;
52945
53807
  kopieen?: number;
52946
53808
  layout_id?: string | null;
52947
53809
  opgepakt_op?: string | null;
52948
53810
  paginas?: number;
52949
53811
  payload?: import("../integrations/supabase/types").Json;
53812
+ pdf_base64?: string | null;
53813
+ pdf_url?: string | null;
52950
53814
  pogingen?: number;
52951
53815
  printer_id?: string | null;
52952
53816
  render_html?: string | null;
52953
53817
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
52954
53818
  updated_at?: string;
53819
+ volgende_poging?: string | null;
52955
53820
  voltooid_op?: string | null;
52956
53821
  };
52957
53822
  Relationships: [{
@@ -53134,6 +53999,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
53134
53999
  agent_id: string | null;
53135
54000
  created_at: string;
53136
54001
  driver: string;
54002
+ extern_printer_id: string | null;
53137
54003
  id: string;
53138
54004
  ip_adres: string | null;
53139
54005
  laatst_gezien: string | null;
@@ -53155,6 +54021,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
53155
54021
  agent_id?: string | null;
53156
54022
  created_at?: string;
53157
54023
  driver?: string;
54024
+ extern_printer_id?: string | null;
53158
54025
  id?: string;
53159
54026
  ip_adres?: string | null;
53160
54027
  laatst_gezien?: string | null;
@@ -53176,6 +54043,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
53176
54043
  agent_id?: string | null;
53177
54044
  created_at?: string;
53178
54045
  driver?: string;
54046
+ extern_printer_id?: string | null;
53179
54047
  id?: string;
53180
54048
  ip_adres?: string | null;
53181
54049
  laatst_gezien?: string | null;
@@ -58780,6 +59648,125 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
58780
59648
  };
58781
59649
  Returns: import("../integrations/supabase/types").Json;
58782
59650
  };
59651
+ claim_cloud_print_jobs: {
59652
+ Args: {
59653
+ _max?: number;
59654
+ };
59655
+ Returns: {
59656
+ agent_id: string | null;
59657
+ bron_job_id: string | null;
59658
+ created_at: string;
59659
+ documentnaam: string;
59660
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
59661
+ extern_job_id: string | null;
59662
+ foutmelding: string | null;
59663
+ gebruiker_id: string | null;
59664
+ gebruiker_naam: string;
59665
+ gestart_op: string | null;
59666
+ id: string;
59667
+ idempotentie_sleutel: string | null;
59668
+ is_herprint: boolean;
59669
+ kopieen: number;
59670
+ layout_id: string | null;
59671
+ opgepakt_op: string | null;
59672
+ paginas: number;
59673
+ payload: import("../integrations/supabase/types").Json;
59674
+ pdf_base64: string | null;
59675
+ pdf_url: string | null;
59676
+ pogingen: number;
59677
+ printer_id: string | null;
59678
+ render_html: string | null;
59679
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59680
+ updated_at: string;
59681
+ volgende_poging: string | null;
59682
+ voltooid_op: string | null;
59683
+ }[];
59684
+ SetofOptions: {
59685
+ from: "*";
59686
+ to: "print_jobs";
59687
+ isOneToOne: false;
59688
+ isSetofReturn: true;
59689
+ };
59690
+ };
59691
+ claim_floriday_stock_queue: {
59692
+ Args: {
59693
+ p_limit?: number;
59694
+ p_worker?: string;
59695
+ };
59696
+ Returns: {
59697
+ attempts: number;
59698
+ connection_id: string;
59699
+ created_at: string;
59700
+ desired_available: boolean | null;
59701
+ gateway_attempt_id: string | null;
59702
+ id: string;
59703
+ last_error: string | null;
59704
+ locked_at: string | null;
59705
+ locked_by: string | null;
59706
+ next_attempt_at: string;
59707
+ number_of_pieces: number;
59708
+ sent_at: string | null;
59709
+ status: string;
59710
+ superseded_by: string | null;
59711
+ trade_item_id: string;
59712
+ updated_at: string;
59713
+ user_id: string;
59714
+ }[];
59715
+ SetofOptions: {
59716
+ from: "*";
59717
+ to: "floriday_continuous_stock_queue";
59718
+ isOneToOne: false;
59719
+ isSetofReturn: true;
59720
+ };
59721
+ };
59722
+ claim_logistics_tasks: {
59723
+ Args: {
59724
+ _limit?: number;
59725
+ _owner_module: string;
59726
+ _stale_minutes?: number;
59727
+ _task_type: string;
59728
+ _worker: string;
59729
+ };
59730
+ Returns: {
59731
+ attempt_log: import("../integrations/supabase/types").Json;
59732
+ attempts: number;
59733
+ buffer_ref: string | null;
59734
+ claimed_at: string | null;
59735
+ claimed_by: string | null;
59736
+ completed_at: string | null;
59737
+ created_at: string;
59738
+ depends_on: string[];
59739
+ due_at: string | null;
59740
+ error: string | null;
59741
+ id: string;
59742
+ last_error: string | null;
59743
+ next_attempt_at: string | null;
59744
+ order_ref: string;
59745
+ owner_module: string;
59746
+ payload: import("../integrations/supabase/types").Json;
59747
+ plan_run_id: string | null;
59748
+ planned_end: string | null;
59749
+ planned_start: string | null;
59750
+ priority: number;
59751
+ result: import("../integrations/supabase/types").Json | null;
59752
+ rule_config_id: string | null;
59753
+ rule_version: number | null;
59754
+ sequence: number;
59755
+ shadow: boolean;
59756
+ started_at: string | null;
59757
+ status: string;
59758
+ strategy_id: string | null;
59759
+ task_type: string;
59760
+ updated_at: string;
59761
+ user_id: string;
59762
+ }[];
59763
+ SetofOptions: {
59764
+ from: "*";
59765
+ to: "logistics_tasks";
59766
+ isOneToOne: false;
59767
+ isSetofReturn: true;
59768
+ };
59769
+ };
58783
59770
  claim_print_jobs: {
58784
59771
  Args: {
58785
59772
  _agent_id: string;
@@ -58791,22 +59778,27 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
58791
59778
  created_at: string;
58792
59779
  documentnaam: string;
58793
59780
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
59781
+ extern_job_id: string | null;
58794
59782
  foutmelding: string | null;
58795
59783
  gebruiker_id: string | null;
58796
59784
  gebruiker_naam: string;
58797
59785
  gestart_op: string | null;
58798
59786
  id: string;
59787
+ idempotentie_sleutel: string | null;
58799
59788
  is_herprint: boolean;
58800
59789
  kopieen: number;
58801
59790
  layout_id: string | null;
58802
59791
  opgepakt_op: string | null;
58803
59792
  paginas: number;
58804
59793
  payload: import("../integrations/supabase/types").Json;
59794
+ pdf_base64: string | null;
59795
+ pdf_url: string | null;
58805
59796
  pogingen: number;
58806
59797
  printer_id: string | null;
58807
59798
  render_html: string | null;
58808
59799
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
58809
59800
  updated_at: string;
59801
+ volgende_poging: string | null;
58810
59802
  voltooid_op: string | null;
58811
59803
  }[];
58812
59804
  SetofOptions: {
@@ -58844,10 +59836,24 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
58844
59836
  isSetofReturn: true;
58845
59837
  };
58846
59838
  };
59839
+ cleanup_floriday_stock_queue: {
59840
+ Args: never;
59841
+ Returns: undefined;
59842
+ };
58847
59843
  cleanup_old_bookings: {
58848
59844
  Args: never;
58849
59845
  Returns: undefined;
58850
59846
  };
59847
+ complete_floriday_stock_queue: {
59848
+ Args: {
59849
+ p_attempt_id?: string;
59850
+ p_error?: string;
59851
+ p_id: string;
59852
+ p_ok: boolean;
59853
+ p_permanent?: boolean;
59854
+ };
59855
+ Returns: undefined;
59856
+ };
58851
59857
  consume_bom_for_production: {
58852
59858
  Args: {
58853
59859
  p_connection_id: string;
@@ -59244,6 +60250,10 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
59244
60250
  };
59245
60251
  Returns: number;
59246
60252
  };
60253
+ get_offer_branding: {
60254
+ Args: never;
60255
+ Returns: import("../integrations/supabase/types").Json;
60256
+ };
59247
60257
  get_offer_by_link_code: {
59248
60258
  Args: {
59249
60259
  p_code: string;
@@ -59535,6 +60545,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
59535
60545
  p_worker?: string;
59536
60546
  };
59537
60547
  Returns: {
60548
+ attempt_log: import("../integrations/supabase/types").Json;
60549
+ attempts: number;
59538
60550
  buffer_ref: string | null;
59539
60551
  claimed_at: string | null;
59540
60552
  claimed_by: string | null;
@@ -59544,6 +60556,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
59544
60556
  due_at: string | null;
59545
60557
  error: string | null;
59546
60558
  id: string;
60559
+ last_error: string | null;
60560
+ next_attempt_at: string | null;
59547
60561
  order_ref: string;
59548
60562
  owner_module: string;
59549
60563
  payload: import("../integrations/supabase/types").Json;
@@ -59576,6 +60590,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
59576
60590
  p_worker?: string;
59577
60591
  };
59578
60592
  Returns: {
60593
+ attempt_log: import("../integrations/supabase/types").Json;
60594
+ attempts: number;
59579
60595
  buffer_ref: string | null;
59580
60596
  claimed_at: string | null;
59581
60597
  claimed_by: string | null;
@@ -59585,6 +60601,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
59585
60601
  due_at: string | null;
59586
60602
  error: string | null;
59587
60603
  id: string;
60604
+ last_error: string | null;
60605
+ next_attempt_at: string | null;
59588
60606
  order_ref: string;
59589
60607
  owner_module: string;
59590
60608
  payload: import("../integrations/supabase/types").Json;
@@ -59617,6 +60635,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
59617
60635
  p_task_id: string;
59618
60636
  };
59619
60637
  Returns: {
60638
+ attempt_log: import("../integrations/supabase/types").Json;
60639
+ attempts: number;
59620
60640
  buffer_ref: string | null;
59621
60641
  claimed_at: string | null;
59622
60642
  claimed_by: string | null;
@@ -59626,6 +60646,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
59626
60646
  due_at: string | null;
59627
60647
  error: string | null;
59628
60648
  id: string;
60649
+ last_error: string | null;
60650
+ next_attempt_at: string | null;
59629
60651
  order_ref: string;
59630
60652
  owner_module: string;
59631
60653
  payload: import("../integrations/supabase/types").Json;
@@ -59707,6 +60729,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
59707
60729
  p_task_id: string;
59708
60730
  };
59709
60731
  Returns: {
60732
+ attempt_log: import("../integrations/supabase/types").Json;
60733
+ attempts: number;
59710
60734
  buffer_ref: string | null;
59711
60735
  claimed_at: string | null;
59712
60736
  claimed_by: string | null;
@@ -59716,6 +60740,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
59716
60740
  due_at: string | null;
59717
60741
  error: string | null;
59718
60742
  id: string;
60743
+ last_error: string | null;
60744
+ next_attempt_at: string | null;
59719
60745
  order_ref: string;
59720
60746
  owner_module: string;
59721
60747
  payload: import("../integrations/supabase/types").Json;
@@ -59742,6 +60768,51 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
59742
60768
  isSetofReturn: false;
59743
60769
  };
59744
60770
  };
60771
+ logistics_floriday_claim_pushes: {
60772
+ Args: {
60773
+ _lease_seconds?: number;
60774
+ _limit?: number;
60775
+ _worker?: string;
60776
+ };
60777
+ Returns: {
60778
+ attempts: number;
60779
+ fulfillment_order_id: string;
60780
+ id: string;
60781
+ last_sent_hash: string;
60782
+ order_ref: string;
60783
+ payload: import("../integrations/supabase/types").Json;
60784
+ payload_hash: string;
60785
+ revision: number;
60786
+ }[];
60787
+ };
60788
+ logistics_floriday_finish_push: {
60789
+ Args: {
60790
+ _error?: string;
60791
+ _fulfillment_order_id?: string;
60792
+ _id: string;
60793
+ _max_age_hours?: number;
60794
+ _max_attempts?: number;
60795
+ _ok: boolean;
60796
+ _permanent?: boolean;
60797
+ _revision: number;
60798
+ _sent_hash?: string;
60799
+ };
60800
+ Returns: string;
60801
+ };
60802
+ logistics_floriday_prune_pushes: {
60803
+ Args: {
60804
+ _days?: number;
60805
+ };
60806
+ Returns: number;
60807
+ };
60808
+ logistics_floriday_queue_push: {
60809
+ Args: {
60810
+ _order_ref: string;
60811
+ _payload?: import("../integrations/supabase/types").Json;
60812
+ _payload_hash?: string;
60813
+ };
60814
+ Returns: string;
60815
+ };
59745
60816
  logistics_live_carriers: {
59746
60817
  Args: {
59747
60818
  p_order_ref: string;
@@ -60089,6 +61160,15 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60089
61160
  };
60090
61161
  Returns: string;
60091
61162
  };
61163
+ pick_active_printers: {
61164
+ Args: never;
61165
+ Returns: {
61166
+ id: string;
61167
+ locatie: string;
61168
+ naam: string;
61169
+ online: boolean;
61170
+ }[];
61171
+ };
60092
61172
  pick_claim_document: {
60093
61173
  Args: {
60094
61174
  _queue_item_id: string;
@@ -60275,6 +61355,52 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60275
61355
  };
60276
61356
  Returns: undefined;
60277
61357
  };
61358
+ pick_reset_print: {
61359
+ Args: {
61360
+ _queue_item_id: string;
61361
+ _session_id: string;
61362
+ };
61363
+ Returns: {
61364
+ announced_at: string;
61365
+ assigned_user_id: string | null;
61366
+ barcode: string | null;
61367
+ cancelled_at: string | null;
61368
+ cart_count: number;
61369
+ completed_at: string | null;
61370
+ country_code: string | null;
61371
+ created_at: string;
61372
+ customer_name: string | null;
61373
+ delivery_address: string | null;
61374
+ document_number: string | null;
61375
+ document_type_id: string | null;
61376
+ due_at: string | null;
61377
+ id: string;
61378
+ is_urgent: boolean;
61379
+ line_count: number;
61380
+ order_number: string | null;
61381
+ order_type: string | null;
61382
+ payload: import("../integrations/supabase/types").Json;
61383
+ print_count: number;
61384
+ print_job_id: string | null;
61385
+ printed_at: string | null;
61386
+ printed_by: string | null;
61387
+ printer_id: string | null;
61388
+ priority: number;
61389
+ reference: string | null;
61390
+ route: string | null;
61391
+ screen_id: string | null;
61392
+ station_id: string | null;
61393
+ status_id: string | null;
61394
+ updated_at: string;
61395
+ warnings: import("../integrations/supabase/types").Json;
61396
+ };
61397
+ SetofOptions: {
61398
+ from: "*";
61399
+ to: "pick_queue";
61400
+ isOneToOne: true;
61401
+ isSetofReturn: false;
61402
+ };
61403
+ };
60278
61404
  pick_station_dashboard: {
60279
61405
  Args: never;
60280
61406
  Returns: {
@@ -60465,10 +61591,20 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60465
61591
  };
60466
61592
  Returns: import("../integrations/supabase/types").Json;
60467
61593
  };
61594
+ ruim_print_jobs_op: {
61595
+ Args: {
61596
+ _bewaar_dagen?: number;
61597
+ };
61598
+ Returns: number;
61599
+ };
60468
61600
  run_floriday_continuous_stock_sync: {
60469
61601
  Args: never;
60470
61602
  Returns: undefined;
60471
61603
  };
61604
+ run_logistics_tasks_dispatch: {
61605
+ Args: never;
61606
+ Returns: undefined;
61607
+ };
60472
61608
  run_twinfield_queue_tick: {
60473
61609
  Args: never;
60474
61610
  Returns: undefined;
@@ -60709,6 +61845,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60709
61845
  };
60710
61846
  Returns: number;
60711
61847
  };
61848
+ schedule_floriday_stock_queue_process: {
61849
+ Args: {
61850
+ p_apikey: string;
61851
+ p_url: string;
61852
+ };
61853
+ Returns: number;
61854
+ };
60712
61855
  schedule_floriday_token_refresh: {
60713
61856
  Args: {
60714
61857
  p_apikey: string;
@@ -60898,7 +62041,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60898
62041
  };
60899
62042
  Enums: {
60900
62043
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
60901
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
62044
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
60902
62045
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
60903
62046
  doc_orientation: "portrait" | "landscape";
60904
62047
  exact_env: "staging" | "live";
@@ -60983,12 +62126,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
60983
62126
  signup_mail_purpose?: string;
60984
62127
  transport_register_days_before?: number;
60985
62128
  updated_at?: string;
60986
- user_id
60987
- /**
60988
- * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
60989
- * `done` waar is en schakelt dan door naar de volgende fase.
60990
- */
60991
- ?: string;
62129
+ user_id?: string;
60992
62130
  };
60993
62131
  Relationships: [];
60994
62132
  };
@@ -66631,12 +67769,17 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
66631
67769
  attempts: number;
66632
67770
  connection_id: string;
66633
67771
  created_at: string;
67772
+ desired_available: boolean | null;
66634
67773
  gateway_attempt_id: string | null;
66635
67774
  id: string;
66636
67775
  last_error: string | null;
67776
+ locked_at: string | null;
67777
+ locked_by: string | null;
67778
+ next_attempt_at: string;
66637
67779
  number_of_pieces: number;
66638
67780
  sent_at: string | null;
66639
67781
  status: string;
67782
+ superseded_by: string | null;
66640
67783
  trade_item_id: string;
66641
67784
  updated_at: string;
66642
67785
  user_id: string;
@@ -66645,12 +67788,17 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
66645
67788
  attempts?: number;
66646
67789
  connection_id: string;
66647
67790
  created_at?: string;
67791
+ desired_available?: boolean | null;
66648
67792
  gateway_attempt_id?: string | null;
66649
67793
  id?: string;
66650
67794
  last_error?: string | null;
67795
+ locked_at?: string | null;
67796
+ locked_by?: string | null;
67797
+ next_attempt_at?: string;
66651
67798
  number_of_pieces?: number;
66652
67799
  sent_at?: string | null;
66653
67800
  status?: string;
67801
+ superseded_by?: string | null;
66654
67802
  trade_item_id: string;
66655
67803
  updated_at?: string;
66656
67804
  user_id: string;
@@ -66659,12 +67807,17 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
66659
67807
  attempts?: number;
66660
67808
  connection_id?: string;
66661
67809
  created_at?: string;
67810
+ desired_available?: boolean | null;
66662
67811
  gateway_attempt_id?: string | null;
66663
67812
  id?: string;
66664
67813
  last_error?: string | null;
67814
+ locked_at?: string | null;
67815
+ locked_by?: string | null;
67816
+ next_attempt_at?: string;
66665
67817
  number_of_pieces?: number;
66666
67818
  sent_at?: string | null;
66667
67819
  status?: string;
67820
+ superseded_by?: string | null;
66668
67821
  trade_item_id?: string;
66669
67822
  updated_at?: string;
66670
67823
  user_id?: string;
@@ -69413,6 +70566,69 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
69413
70566
  };
69414
70567
  Relationships: [];
69415
70568
  };
70569
+ logistics_floriday_pushes: {
70570
+ Row: {
70571
+ attempts: number;
70572
+ created_at: string;
70573
+ first_queued_at: string;
70574
+ fulfillment_order_id: string | null;
70575
+ id: string;
70576
+ last_error: string | null;
70577
+ last_error_at: string | null;
70578
+ last_sent_hash: string | null;
70579
+ locked_by: string | null;
70580
+ locked_until: string | null;
70581
+ next_attempt_at: string;
70582
+ order_ref: string;
70583
+ payload: import("../integrations/supabase/types").Json;
70584
+ payload_hash: string | null;
70585
+ revision: number;
70586
+ sent_at: string | null;
70587
+ status: string;
70588
+ updated_at: string;
70589
+ };
70590
+ Insert: {
70591
+ attempts?: number;
70592
+ created_at?: string;
70593
+ first_queued_at?: string;
70594
+ fulfillment_order_id?: string | null;
70595
+ id?: string;
70596
+ last_error?: string | null;
70597
+ last_error_at?: string | null;
70598
+ last_sent_hash?: string | null;
70599
+ locked_by?: string | null;
70600
+ locked_until?: string | null;
70601
+ next_attempt_at?: string;
70602
+ order_ref: string;
70603
+ payload?: import("../integrations/supabase/types").Json;
70604
+ payload_hash?: string | null;
70605
+ revision?: number;
70606
+ sent_at?: string | null;
70607
+ status?: string;
70608
+ updated_at?: string;
70609
+ };
70610
+ Update: {
70611
+ attempts?: number;
70612
+ created_at?: string;
70613
+ first_queued_at?: string;
70614
+ fulfillment_order_id?: string | null;
70615
+ id?: string;
70616
+ last_error?: string | null;
70617
+ last_error_at?: string | null;
70618
+ last_sent_hash?: string | null;
70619
+ locked_by?: string | null;
70620
+ locked_until?: string | null;
70621
+ next_attempt_at?: string;
70622
+ order_ref?: string;
70623
+ payload?: import("../integrations/supabase/types").Json;
70624
+ payload_hash?: string | null;
70625
+ revision?: number;
70626
+ sent_at?: string | null;
70627
+ status?: string;
70628
+ updated_at?: string;
70629
+ };
70630
+ Relationships: [];
70631
+ };
69416
70632
  logistics_formulas: {
69417
70633
  Row: {
69418
70634
  created_at: string;
@@ -70024,6 +71240,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
70024
71240
  };
70025
71241
  logistics_tasks: {
70026
71242
  Row: {
71243
+ attempt_log: import("../integrations/supabase/types").Json;
71244
+ attempts: number;
70027
71245
  buffer_ref: string | null;
70028
71246
  claimed_at: string | null;
70029
71247
  claimed_by: string | null;
@@ -70033,6 +71251,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
70033
71251
  due_at: string | null;
70034
71252
  error: string | null;
70035
71253
  id: string;
71254
+ last_error: string | null;
71255
+ next_attempt_at: string | null;
70036
71256
  order_ref: string;
70037
71257
  owner_module: string;
70038
71258
  payload: import("../integrations/supabase/types").Json;
@@ -70053,6 +71273,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
70053
71273
  user_id: string;
70054
71274
  };
70055
71275
  Insert: {
71276
+ attempt_log?: import("../integrations/supabase/types").Json;
71277
+ attempts?: number;
70056
71278
  buffer_ref?: string | null;
70057
71279
  claimed_at?: string | null;
70058
71280
  claimed_by?: string | null;
@@ -70062,6 +71284,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
70062
71284
  due_at?: string | null;
70063
71285
  error?: string | null;
70064
71286
  id?: string;
71287
+ last_error?: string | null;
71288
+ next_attempt_at?: string | null;
70065
71289
  order_ref: string;
70066
71290
  owner_module: string;
70067
71291
  payload?: import("../integrations/supabase/types").Json;
@@ -70082,6 +71306,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
70082
71306
  user_id?: string;
70083
71307
  };
70084
71308
  Update: {
71309
+ attempt_log?: import("../integrations/supabase/types").Json;
71310
+ attempts?: number;
70085
71311
  buffer_ref?: string | null;
70086
71312
  claimed_at?: string | null;
70087
71313
  claimed_by?: string | null;
@@ -70091,6 +71317,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
70091
71317
  due_at?: string | null;
70092
71318
  error?: string | null;
70093
71319
  id?: string;
71320
+ last_error?: string | null;
71321
+ next_attempt_at?: string | null;
70094
71322
  order_ref?: string;
70095
71323
  owner_module?: string;
70096
71324
  payload?: import("../integrations/supabase/types").Json;
@@ -71440,6 +72668,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
71440
72668
  };
71441
72669
  offer_settings: {
71442
72670
  Row: {
72671
+ brand_name: string | null;
71443
72672
  button_color: string;
71444
72673
  created_at: string;
71445
72674
  default_countries: string[];
@@ -71461,6 +72690,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
71461
72690
  updated_at: string;
71462
72691
  };
71463
72692
  Insert: {
72693
+ brand_name?: string | null;
71464
72694
  button_color?: string;
71465
72695
  created_at?: string;
71466
72696
  default_countries?: string[];
@@ -71482,6 +72712,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
71482
72712
  updated_at?: string;
71483
72713
  };
71484
72714
  Update: {
72715
+ brand_name?: string | null;
71485
72716
  button_color?: string;
71486
72717
  created_at?: string;
71487
72718
  default_countries?: string[];
@@ -73200,22 +74431,27 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
73200
74431
  created_at: string;
73201
74432
  documentnaam: string;
73202
74433
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
74434
+ extern_job_id: string | null;
73203
74435
  foutmelding: string | null;
73204
74436
  gebruiker_id: string | null;
73205
74437
  gebruiker_naam: string;
73206
74438
  gestart_op: string | null;
73207
74439
  id: string;
74440
+ idempotentie_sleutel: string | null;
73208
74441
  is_herprint: boolean;
73209
74442
  kopieen: number;
73210
74443
  layout_id: string | null;
73211
74444
  opgepakt_op: string | null;
73212
74445
  paginas: number;
73213
74446
  payload: import("../integrations/supabase/types").Json;
74447
+ pdf_base64: string | null;
74448
+ pdf_url: string | null;
73214
74449
  pogingen: number;
73215
74450
  printer_id: string | null;
73216
74451
  render_html: string | null;
73217
74452
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
73218
74453
  updated_at: string;
74454
+ volgende_poging: string | null;
73219
74455
  voltooid_op: string | null;
73220
74456
  };
73221
74457
  Insert: {
@@ -73224,22 +74460,27 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
73224
74460
  created_at?: string;
73225
74461
  documentnaam?: string;
73226
74462
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
74463
+ extern_job_id?: string | null;
73227
74464
  foutmelding?: string | null;
73228
74465
  gebruiker_id?: string | null;
73229
74466
  gebruiker_naam?: string;
73230
74467
  gestart_op?: string | null;
73231
74468
  id?: string;
74469
+ idempotentie_sleutel?: string | null;
73232
74470
  is_herprint?: boolean;
73233
74471
  kopieen?: number;
73234
74472
  layout_id?: string | null;
73235
74473
  opgepakt_op?: string | null;
73236
74474
  paginas?: number;
73237
74475
  payload?: import("../integrations/supabase/types").Json;
74476
+ pdf_base64?: string | null;
74477
+ pdf_url?: string | null;
73238
74478
  pogingen?: number;
73239
74479
  printer_id?: string | null;
73240
74480
  render_html?: string | null;
73241
74481
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
73242
74482
  updated_at?: string;
74483
+ volgende_poging?: string | null;
73243
74484
  voltooid_op?: string | null;
73244
74485
  };
73245
74486
  Update: {
@@ -73248,22 +74489,27 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
73248
74489
  created_at?: string;
73249
74490
  documentnaam?: string;
73250
74491
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
74492
+ extern_job_id?: string | null;
73251
74493
  foutmelding?: string | null;
73252
74494
  gebruiker_id?: string | null;
73253
74495
  gebruiker_naam?: string;
73254
74496
  gestart_op?: string | null;
73255
74497
  id?: string;
74498
+ idempotentie_sleutel?: string | null;
73256
74499
  is_herprint?: boolean;
73257
74500
  kopieen?: number;
73258
74501
  layout_id?: string | null;
73259
74502
  opgepakt_op?: string | null;
73260
74503
  paginas?: number;
73261
74504
  payload?: import("../integrations/supabase/types").Json;
74505
+ pdf_base64?: string | null;
74506
+ pdf_url?: string | null;
73262
74507
  pogingen?: number;
73263
74508
  printer_id?: string | null;
73264
74509
  render_html?: string | null;
73265
74510
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
73266
74511
  updated_at?: string;
74512
+ volgende_poging?: string | null;
73267
74513
  voltooid_op?: string | null;
73268
74514
  };
73269
74515
  Relationships: [{
@@ -73446,6 +74692,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
73446
74692
  agent_id: string | null;
73447
74693
  created_at: string;
73448
74694
  driver: string;
74695
+ extern_printer_id: string | null;
73449
74696
  id: string;
73450
74697
  ip_adres: string | null;
73451
74698
  laatst_gezien: string | null;
@@ -73467,6 +74714,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
73467
74714
  agent_id?: string | null;
73468
74715
  created_at?: string;
73469
74716
  driver?: string;
74717
+ extern_printer_id?: string | null;
73470
74718
  id?: string;
73471
74719
  ip_adres?: string | null;
73472
74720
  laatst_gezien?: string | null;
@@ -73488,6 +74736,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
73488
74736
  agent_id?: string | null;
73489
74737
  created_at?: string;
73490
74738
  driver?: string;
74739
+ extern_printer_id?: string | null;
73491
74740
  id?: string;
73492
74741
  ip_adres?: string | null;
73493
74742
  laatst_gezien?: string | null;
@@ -79092,6 +80341,125 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79092
80341
  };
79093
80342
  Returns: import("../integrations/supabase/types").Json;
79094
80343
  };
80344
+ claim_cloud_print_jobs: {
80345
+ Args: {
80346
+ _max?: number;
80347
+ };
80348
+ Returns: {
80349
+ agent_id: string | null;
80350
+ bron_job_id: string | null;
80351
+ created_at: string;
80352
+ documentnaam: string;
80353
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
80354
+ extern_job_id: string | null;
80355
+ foutmelding: string | null;
80356
+ gebruiker_id: string | null;
80357
+ gebruiker_naam: string;
80358
+ gestart_op: string | null;
80359
+ id: string;
80360
+ idempotentie_sleutel: string | null;
80361
+ is_herprint: boolean;
80362
+ kopieen: number;
80363
+ layout_id: string | null;
80364
+ opgepakt_op: string | null;
80365
+ paginas: number;
80366
+ payload: import("../integrations/supabase/types").Json;
80367
+ pdf_base64: string | null;
80368
+ pdf_url: string | null;
80369
+ pogingen: number;
80370
+ printer_id: string | null;
80371
+ render_html: string | null;
80372
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
80373
+ updated_at: string;
80374
+ volgende_poging: string | null;
80375
+ voltooid_op: string | null;
80376
+ }[];
80377
+ SetofOptions: {
80378
+ from: "*";
80379
+ to: "print_jobs";
80380
+ isOneToOne: false;
80381
+ isSetofReturn: true;
80382
+ };
80383
+ };
80384
+ claim_floriday_stock_queue: {
80385
+ Args: {
80386
+ p_limit?: number;
80387
+ p_worker?: string;
80388
+ };
80389
+ Returns: {
80390
+ attempts: number;
80391
+ connection_id: string;
80392
+ created_at: string;
80393
+ desired_available: boolean | null;
80394
+ gateway_attempt_id: string | null;
80395
+ id: string;
80396
+ last_error: string | null;
80397
+ locked_at: string | null;
80398
+ locked_by: string | null;
80399
+ next_attempt_at: string;
80400
+ number_of_pieces: number;
80401
+ sent_at: string | null;
80402
+ status: string;
80403
+ superseded_by: string | null;
80404
+ trade_item_id: string;
80405
+ updated_at: string;
80406
+ user_id: string;
80407
+ }[];
80408
+ SetofOptions: {
80409
+ from: "*";
80410
+ to: "floriday_continuous_stock_queue";
80411
+ isOneToOne: false;
80412
+ isSetofReturn: true;
80413
+ };
80414
+ };
80415
+ claim_logistics_tasks: {
80416
+ Args: {
80417
+ _limit?: number;
80418
+ _owner_module: string;
80419
+ _stale_minutes?: number;
80420
+ _task_type: string;
80421
+ _worker: string;
80422
+ };
80423
+ Returns: {
80424
+ attempt_log: import("../integrations/supabase/types").Json;
80425
+ attempts: number;
80426
+ buffer_ref: string | null;
80427
+ claimed_at: string | null;
80428
+ claimed_by: string | null;
80429
+ completed_at: string | null;
80430
+ created_at: string;
80431
+ depends_on: string[];
80432
+ due_at: string | null;
80433
+ error: string | null;
80434
+ id: string;
80435
+ last_error: string | null;
80436
+ next_attempt_at: string | null;
80437
+ order_ref: string;
80438
+ owner_module: string;
80439
+ payload: import("../integrations/supabase/types").Json;
80440
+ plan_run_id: string | null;
80441
+ planned_end: string | null;
80442
+ planned_start: string | null;
80443
+ priority: number;
80444
+ result: import("../integrations/supabase/types").Json | null;
80445
+ rule_config_id: string | null;
80446
+ rule_version: number | null;
80447
+ sequence: number;
80448
+ shadow: boolean;
80449
+ started_at: string | null;
80450
+ status: string;
80451
+ strategy_id: string | null;
80452
+ task_type: string;
80453
+ updated_at: string;
80454
+ user_id: string;
80455
+ }[];
80456
+ SetofOptions: {
80457
+ from: "*";
80458
+ to: "logistics_tasks";
80459
+ isOneToOne: false;
80460
+ isSetofReturn: true;
80461
+ };
80462
+ };
79095
80463
  claim_print_jobs: {
79096
80464
  Args: {
79097
80465
  _agent_id: string;
@@ -79103,22 +80471,27 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79103
80471
  created_at: string;
79104
80472
  documentnaam: string;
79105
80473
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
80474
+ extern_job_id: string | null;
79106
80475
  foutmelding: string | null;
79107
80476
  gebruiker_id: string | null;
79108
80477
  gebruiker_naam: string;
79109
80478
  gestart_op: string | null;
79110
80479
  id: string;
80480
+ idempotentie_sleutel: string | null;
79111
80481
  is_herprint: boolean;
79112
80482
  kopieen: number;
79113
80483
  layout_id: string | null;
79114
80484
  opgepakt_op: string | null;
79115
80485
  paginas: number;
79116
80486
  payload: import("../integrations/supabase/types").Json;
80487
+ pdf_base64: string | null;
80488
+ pdf_url: string | null;
79117
80489
  pogingen: number;
79118
80490
  printer_id: string | null;
79119
80491
  render_html: string | null;
79120
80492
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
79121
80493
  updated_at: string;
80494
+ volgende_poging: string | null;
79122
80495
  voltooid_op: string | null;
79123
80496
  }[];
79124
80497
  SetofOptions: {
@@ -79156,10 +80529,24 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79156
80529
  isSetofReturn: true;
79157
80530
  };
79158
80531
  };
80532
+ cleanup_floriday_stock_queue: {
80533
+ Args: never;
80534
+ Returns: undefined;
80535
+ };
79159
80536
  cleanup_old_bookings: {
79160
80537
  Args: never;
79161
80538
  Returns: undefined;
79162
80539
  };
80540
+ complete_floriday_stock_queue: {
80541
+ Args: {
80542
+ p_attempt_id?: string;
80543
+ p_error?: string;
80544
+ p_id: string;
80545
+ p_ok: boolean;
80546
+ p_permanent?: boolean;
80547
+ };
80548
+ Returns: undefined;
80549
+ };
79163
80550
  consume_bom_for_production: {
79164
80551
  Args: {
79165
80552
  p_connection_id: string;
@@ -79556,6 +80943,10 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79556
80943
  };
79557
80944
  Returns: number;
79558
80945
  };
80946
+ get_offer_branding: {
80947
+ Args: never;
80948
+ Returns: import("../integrations/supabase/types").Json;
80949
+ };
79559
80950
  get_offer_by_link_code: {
79560
80951
  Args: {
79561
80952
  p_code: string;
@@ -79847,6 +81238,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79847
81238
  p_worker?: string;
79848
81239
  };
79849
81240
  Returns: {
81241
+ attempt_log: import("../integrations/supabase/types").Json;
81242
+ attempts: number;
79850
81243
  buffer_ref: string | null;
79851
81244
  claimed_at: string | null;
79852
81245
  claimed_by: string | null;
@@ -79856,6 +81249,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79856
81249
  due_at: string | null;
79857
81250
  error: string | null;
79858
81251
  id: string;
81252
+ last_error: string | null;
81253
+ next_attempt_at: string | null;
79859
81254
  order_ref: string;
79860
81255
  owner_module: string;
79861
81256
  payload: import("../integrations/supabase/types").Json;
@@ -79888,6 +81283,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79888
81283
  p_worker?: string;
79889
81284
  };
79890
81285
  Returns: {
81286
+ attempt_log: import("../integrations/supabase/types").Json;
81287
+ attempts: number;
79891
81288
  buffer_ref: string | null;
79892
81289
  claimed_at: string | null;
79893
81290
  claimed_by: string | null;
@@ -79897,6 +81294,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79897
81294
  due_at: string | null;
79898
81295
  error: string | null;
79899
81296
  id: string;
81297
+ last_error: string | null;
81298
+ next_attempt_at: string | null;
79900
81299
  order_ref: string;
79901
81300
  owner_module: string;
79902
81301
  payload: import("../integrations/supabase/types").Json;
@@ -79929,6 +81328,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79929
81328
  p_task_id: string;
79930
81329
  };
79931
81330
  Returns: {
81331
+ attempt_log: import("../integrations/supabase/types").Json;
81332
+ attempts: number;
79932
81333
  buffer_ref: string | null;
79933
81334
  claimed_at: string | null;
79934
81335
  claimed_by: string | null;
@@ -79938,6 +81339,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79938
81339
  due_at: string | null;
79939
81340
  error: string | null;
79940
81341
  id: string;
81342
+ last_error: string | null;
81343
+ next_attempt_at: string | null;
79941
81344
  order_ref: string;
79942
81345
  owner_module: string;
79943
81346
  payload: import("../integrations/supabase/types").Json;
@@ -80019,6 +81422,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
80019
81422
  p_task_id: string;
80020
81423
  };
80021
81424
  Returns: {
81425
+ attempt_log: import("../integrations/supabase/types").Json;
81426
+ attempts: number;
80022
81427
  buffer_ref: string | null;
80023
81428
  claimed_at: string | null;
80024
81429
  claimed_by: string | null;
@@ -80028,6 +81433,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
80028
81433
  due_at: string | null;
80029
81434
  error: string | null;
80030
81435
  id: string;
81436
+ last_error: string | null;
81437
+ next_attempt_at: string | null;
80031
81438
  order_ref: string;
80032
81439
  owner_module: string;
80033
81440
  payload: import("../integrations/supabase/types").Json;
@@ -80054,6 +81461,51 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
80054
81461
  isSetofReturn: false;
80055
81462
  };
80056
81463
  };
81464
+ logistics_floriday_claim_pushes: {
81465
+ Args: {
81466
+ _lease_seconds?: number;
81467
+ _limit?: number;
81468
+ _worker?: string;
81469
+ };
81470
+ Returns: {
81471
+ attempts: number;
81472
+ fulfillment_order_id: string;
81473
+ id: string;
81474
+ last_sent_hash: string;
81475
+ order_ref: string;
81476
+ payload: import("../integrations/supabase/types").Json;
81477
+ payload_hash: string;
81478
+ revision: number;
81479
+ }[];
81480
+ };
81481
+ logistics_floriday_finish_push: {
81482
+ Args: {
81483
+ _error?: string;
81484
+ _fulfillment_order_id?: string;
81485
+ _id: string;
81486
+ _max_age_hours?: number;
81487
+ _max_attempts?: number;
81488
+ _ok: boolean;
81489
+ _permanent?: boolean;
81490
+ _revision: number;
81491
+ _sent_hash?: string;
81492
+ };
81493
+ Returns: string;
81494
+ };
81495
+ logistics_floriday_prune_pushes: {
81496
+ Args: {
81497
+ _days?: number;
81498
+ };
81499
+ Returns: number;
81500
+ };
81501
+ logistics_floriday_queue_push: {
81502
+ Args: {
81503
+ _order_ref: string;
81504
+ _payload?: import("../integrations/supabase/types").Json;
81505
+ _payload_hash?: string;
81506
+ };
81507
+ Returns: string;
81508
+ };
80057
81509
  logistics_live_carriers: {
80058
81510
  Args: {
80059
81511
  p_order_ref: string;
@@ -80401,6 +81853,15 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
80401
81853
  };
80402
81854
  Returns: string;
80403
81855
  };
81856
+ pick_active_printers: {
81857
+ Args: never;
81858
+ Returns: {
81859
+ id: string;
81860
+ locatie: string;
81861
+ naam: string;
81862
+ online: boolean;
81863
+ }[];
81864
+ };
80404
81865
  pick_claim_document: {
80405
81866
  Args: {
80406
81867
  _queue_item_id: string;
@@ -80587,6 +82048,52 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
80587
82048
  };
80588
82049
  Returns: undefined;
80589
82050
  };
82051
+ pick_reset_print: {
82052
+ Args: {
82053
+ _queue_item_id: string;
82054
+ _session_id: string;
82055
+ };
82056
+ Returns: {
82057
+ announced_at: string;
82058
+ assigned_user_id: string | null;
82059
+ barcode: string | null;
82060
+ cancelled_at: string | null;
82061
+ cart_count: number;
82062
+ completed_at: string | null;
82063
+ country_code: string | null;
82064
+ created_at: string;
82065
+ customer_name: string | null;
82066
+ delivery_address: string | null;
82067
+ document_number: string | null;
82068
+ document_type_id: string | null;
82069
+ due_at: string | null;
82070
+ id: string;
82071
+ is_urgent: boolean;
82072
+ line_count: number;
82073
+ order_number: string | null;
82074
+ order_type: string | null;
82075
+ payload: import("../integrations/supabase/types").Json;
82076
+ print_count: number;
82077
+ print_job_id: string | null;
82078
+ printed_at: string | null;
82079
+ printed_by: string | null;
82080
+ printer_id: string | null;
82081
+ priority: number;
82082
+ reference: string | null;
82083
+ route: string | null;
82084
+ screen_id: string | null;
82085
+ station_id: string | null;
82086
+ status_id: string | null;
82087
+ updated_at: string;
82088
+ warnings: import("../integrations/supabase/types").Json;
82089
+ };
82090
+ SetofOptions: {
82091
+ from: "*";
82092
+ to: "pick_queue";
82093
+ isOneToOne: true;
82094
+ isSetofReturn: false;
82095
+ };
82096
+ };
80590
82097
  pick_station_dashboard: {
80591
82098
  Args: never;
80592
82099
  Returns: {
@@ -80777,10 +82284,20 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
80777
82284
  };
80778
82285
  Returns: import("../integrations/supabase/types").Json;
80779
82286
  };
82287
+ ruim_print_jobs_op: {
82288
+ Args: {
82289
+ _bewaar_dagen?: number;
82290
+ };
82291
+ Returns: number;
82292
+ };
80780
82293
  run_floriday_continuous_stock_sync: {
80781
82294
  Args: never;
80782
82295
  Returns: undefined;
80783
82296
  };
82297
+ run_logistics_tasks_dispatch: {
82298
+ Args: never;
82299
+ Returns: undefined;
82300
+ };
80784
82301
  run_twinfield_queue_tick: {
80785
82302
  Args: never;
80786
82303
  Returns: undefined;
@@ -81021,6 +82538,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
81021
82538
  };
81022
82539
  Returns: number;
81023
82540
  };
82541
+ schedule_floriday_stock_queue_process: {
82542
+ Args: {
82543
+ p_apikey: string;
82544
+ p_url: string;
82545
+ };
82546
+ Returns: number;
82547
+ };
81024
82548
  schedule_floriday_token_refresh: {
81025
82549
  Args: {
81026
82550
  p_apikey: string;
@@ -81210,7 +82734,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
81210
82734
  };
81211
82735
  Enums: {
81212
82736
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
81213
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
82737
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
81214
82738
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
81215
82739
  doc_orientation: "portrait" | "landscape";
81216
82740
  exact_env: "staging" | "live";
@@ -81293,12 +82817,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
81293
82817
  signup_mail_purpose?: string;
81294
82818
  transport_register_days_before?: number;
81295
82819
  updated_at?: string;
81296
- user_id
81297
- /**
81298
- * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
81299
- * `done` waar is en schakelt dan door naar de volgende fase.
81300
- */
81301
- ?: string;
82820
+ user_id?: string;
81302
82821
  };
81303
82822
  Relationships: [];
81304
82823
  };
@@ -86941,12 +88460,17 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
86941
88460
  attempts: number;
86942
88461
  connection_id: string;
86943
88462
  created_at: string;
88463
+ desired_available: boolean | null;
86944
88464
  gateway_attempt_id: string | null;
86945
88465
  id: string;
86946
88466
  last_error: string | null;
88467
+ locked_at: string | null;
88468
+ locked_by: string | null;
88469
+ next_attempt_at: string;
86947
88470
  number_of_pieces: number;
86948
88471
  sent_at: string | null;
86949
88472
  status: string;
88473
+ superseded_by: string | null;
86950
88474
  trade_item_id: string;
86951
88475
  updated_at: string;
86952
88476
  user_id: string;
@@ -86955,12 +88479,17 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
86955
88479
  attempts?: number;
86956
88480
  connection_id: string;
86957
88481
  created_at?: string;
88482
+ desired_available?: boolean | null;
86958
88483
  gateway_attempt_id?: string | null;
86959
88484
  id?: string;
86960
88485
  last_error?: string | null;
88486
+ locked_at?: string | null;
88487
+ locked_by?: string | null;
88488
+ next_attempt_at?: string;
86961
88489
  number_of_pieces?: number;
86962
88490
  sent_at?: string | null;
86963
88491
  status?: string;
88492
+ superseded_by?: string | null;
86964
88493
  trade_item_id: string;
86965
88494
  updated_at?: string;
86966
88495
  user_id: string;
@@ -86969,12 +88498,17 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
86969
88498
  attempts?: number;
86970
88499
  connection_id?: string;
86971
88500
  created_at?: string;
88501
+ desired_available?: boolean | null;
86972
88502
  gateway_attempt_id?: string | null;
86973
88503
  id?: string;
86974
88504
  last_error?: string | null;
88505
+ locked_at?: string | null;
88506
+ locked_by?: string | null;
88507
+ next_attempt_at?: string;
86975
88508
  number_of_pieces?: number;
86976
88509
  sent_at?: string | null;
86977
88510
  status?: string;
88511
+ superseded_by?: string | null;
86978
88512
  trade_item_id?: string;
86979
88513
  updated_at?: string;
86980
88514
  user_id?: string;
@@ -89723,6 +91257,69 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
89723
91257
  };
89724
91258
  Relationships: [];
89725
91259
  };
91260
+ logistics_floriday_pushes: {
91261
+ Row: {
91262
+ attempts: number;
91263
+ created_at: string;
91264
+ first_queued_at: string;
91265
+ fulfillment_order_id: string | null;
91266
+ id: string;
91267
+ last_error: string | null;
91268
+ last_error_at: string | null;
91269
+ last_sent_hash: string | null;
91270
+ locked_by: string | null;
91271
+ locked_until: string | null;
91272
+ next_attempt_at: string;
91273
+ order_ref: string;
91274
+ payload: import("../integrations/supabase/types").Json;
91275
+ payload_hash: string | null;
91276
+ revision: number;
91277
+ sent_at: string | null;
91278
+ status: string;
91279
+ updated_at: string;
91280
+ };
91281
+ Insert: {
91282
+ attempts?: number;
91283
+ created_at?: string;
91284
+ first_queued_at?: string;
91285
+ fulfillment_order_id?: string | null;
91286
+ id?: string;
91287
+ last_error?: string | null;
91288
+ last_error_at?: string | null;
91289
+ last_sent_hash?: string | null;
91290
+ locked_by?: string | null;
91291
+ locked_until?: string | null;
91292
+ next_attempt_at?: string;
91293
+ order_ref: string;
91294
+ payload?: import("../integrations/supabase/types").Json;
91295
+ payload_hash?: string | null;
91296
+ revision?: number;
91297
+ sent_at?: string | null;
91298
+ status?: string;
91299
+ updated_at?: string;
91300
+ };
91301
+ Update: {
91302
+ attempts?: number;
91303
+ created_at?: string;
91304
+ first_queued_at?: string;
91305
+ fulfillment_order_id?: string | null;
91306
+ id?: string;
91307
+ last_error?: string | null;
91308
+ last_error_at?: string | null;
91309
+ last_sent_hash?: string | null;
91310
+ locked_by?: string | null;
91311
+ locked_until?: string | null;
91312
+ next_attempt_at?: string;
91313
+ order_ref?: string;
91314
+ payload?: import("../integrations/supabase/types").Json;
91315
+ payload_hash?: string | null;
91316
+ revision?: number;
91317
+ sent_at?: string | null;
91318
+ status?: string;
91319
+ updated_at?: string;
91320
+ };
91321
+ Relationships: [];
91322
+ };
89726
91323
  logistics_formulas: {
89727
91324
  Row: {
89728
91325
  created_at: string;
@@ -90334,6 +91931,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
90334
91931
  };
90335
91932
  logistics_tasks: {
90336
91933
  Row: {
91934
+ attempt_log: import("../integrations/supabase/types").Json;
91935
+ attempts: number;
90337
91936
  buffer_ref: string | null;
90338
91937
  claimed_at: string | null;
90339
91938
  claimed_by: string | null;
@@ -90343,6 +91942,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
90343
91942
  due_at: string | null;
90344
91943
  error: string | null;
90345
91944
  id: string;
91945
+ last_error: string | null;
91946
+ next_attempt_at: string | null;
90346
91947
  order_ref: string;
90347
91948
  owner_module: string;
90348
91949
  payload: import("../integrations/supabase/types").Json;
@@ -90363,6 +91964,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
90363
91964
  user_id: string;
90364
91965
  };
90365
91966
  Insert: {
91967
+ attempt_log?: import("../integrations/supabase/types").Json;
91968
+ attempts?: number;
90366
91969
  buffer_ref?: string | null;
90367
91970
  claimed_at?: string | null;
90368
91971
  claimed_by?: string | null;
@@ -90372,6 +91975,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
90372
91975
  due_at?: string | null;
90373
91976
  error?: string | null;
90374
91977
  id?: string;
91978
+ last_error?: string | null;
91979
+ next_attempt_at?: string | null;
90375
91980
  order_ref: string;
90376
91981
  owner_module: string;
90377
91982
  payload?: import("../integrations/supabase/types").Json;
@@ -90392,6 +91997,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
90392
91997
  user_id?: string;
90393
91998
  };
90394
91999
  Update: {
92000
+ attempt_log?: import("../integrations/supabase/types").Json;
92001
+ attempts?: number;
90395
92002
  buffer_ref?: string | null;
90396
92003
  claimed_at?: string | null;
90397
92004
  claimed_by?: string | null;
@@ -90401,6 +92008,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
90401
92008
  due_at?: string | null;
90402
92009
  error?: string | null;
90403
92010
  id?: string;
92011
+ last_error?: string | null;
92012
+ next_attempt_at?: string | null;
90404
92013
  order_ref?: string;
90405
92014
  owner_module?: string;
90406
92015
  payload?: import("../integrations/supabase/types").Json;
@@ -91750,6 +93359,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
91750
93359
  };
91751
93360
  offer_settings: {
91752
93361
  Row: {
93362
+ brand_name: string | null;
91753
93363
  button_color: string;
91754
93364
  created_at: string;
91755
93365
  default_countries: string[];
@@ -91771,6 +93381,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
91771
93381
  updated_at: string;
91772
93382
  };
91773
93383
  Insert: {
93384
+ brand_name?: string | null;
91774
93385
  button_color?: string;
91775
93386
  created_at?: string;
91776
93387
  default_countries?: string[];
@@ -91792,6 +93403,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
91792
93403
  updated_at?: string;
91793
93404
  };
91794
93405
  Update: {
93406
+ brand_name?: string | null;
91795
93407
  button_color?: string;
91796
93408
  created_at?: string;
91797
93409
  default_countries?: string[];
@@ -93510,22 +95122,27 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
93510
95122
  created_at: string;
93511
95123
  documentnaam: string;
93512
95124
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
95125
+ extern_job_id: string | null;
93513
95126
  foutmelding: string | null;
93514
95127
  gebruiker_id: string | null;
93515
95128
  gebruiker_naam: string;
93516
95129
  gestart_op: string | null;
93517
95130
  id: string;
95131
+ idempotentie_sleutel: string | null;
93518
95132
  is_herprint: boolean;
93519
95133
  kopieen: number;
93520
95134
  layout_id: string | null;
93521
95135
  opgepakt_op: string | null;
93522
95136
  paginas: number;
93523
95137
  payload: import("../integrations/supabase/types").Json;
95138
+ pdf_base64: string | null;
95139
+ pdf_url: string | null;
93524
95140
  pogingen: number;
93525
95141
  printer_id: string | null;
93526
95142
  render_html: string | null;
93527
95143
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
93528
95144
  updated_at: string;
95145
+ volgende_poging: string | null;
93529
95146
  voltooid_op: string | null;
93530
95147
  };
93531
95148
  Insert: {
@@ -93534,22 +95151,27 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
93534
95151
  created_at?: string;
93535
95152
  documentnaam?: string;
93536
95153
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
95154
+ extern_job_id?: string | null;
93537
95155
  foutmelding?: string | null;
93538
95156
  gebruiker_id?: string | null;
93539
95157
  gebruiker_naam?: string;
93540
95158
  gestart_op?: string | null;
93541
95159
  id?: string;
95160
+ idempotentie_sleutel?: string | null;
93542
95161
  is_herprint?: boolean;
93543
95162
  kopieen?: number;
93544
95163
  layout_id?: string | null;
93545
95164
  opgepakt_op?: string | null;
93546
95165
  paginas?: number;
93547
95166
  payload?: import("../integrations/supabase/types").Json;
95167
+ pdf_base64?: string | null;
95168
+ pdf_url?: string | null;
93548
95169
  pogingen?: number;
93549
95170
  printer_id?: string | null;
93550
95171
  render_html?: string | null;
93551
95172
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
93552
95173
  updated_at?: string;
95174
+ volgende_poging?: string | null;
93553
95175
  voltooid_op?: string | null;
93554
95176
  };
93555
95177
  Update: {
@@ -93558,22 +95180,27 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
93558
95180
  created_at?: string;
93559
95181
  documentnaam?: string;
93560
95182
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
95183
+ extern_job_id?: string | null;
93561
95184
  foutmelding?: string | null;
93562
95185
  gebruiker_id?: string | null;
93563
95186
  gebruiker_naam?: string;
93564
95187
  gestart_op?: string | null;
93565
95188
  id?: string;
95189
+ idempotentie_sleutel?: string | null;
93566
95190
  is_herprint?: boolean;
93567
95191
  kopieen?: number;
93568
95192
  layout_id?: string | null;
93569
95193
  opgepakt_op?: string | null;
93570
95194
  paginas?: number;
93571
95195
  payload?: import("../integrations/supabase/types").Json;
95196
+ pdf_base64?: string | null;
95197
+ pdf_url?: string | null;
93572
95198
  pogingen?: number;
93573
95199
  printer_id?: string | null;
93574
95200
  render_html?: string | null;
93575
95201
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
93576
95202
  updated_at?: string;
95203
+ volgende_poging?: string | null;
93577
95204
  voltooid_op?: string | null;
93578
95205
  };
93579
95206
  Relationships: [{
@@ -93756,6 +95383,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
93756
95383
  agent_id: string | null;
93757
95384
  created_at: string;
93758
95385
  driver: string;
95386
+ extern_printer_id: string | null;
93759
95387
  id: string;
93760
95388
  ip_adres: string | null;
93761
95389
  laatst_gezien: string | null;
@@ -93777,6 +95405,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
93777
95405
  agent_id?: string | null;
93778
95406
  created_at?: string;
93779
95407
  driver?: string;
95408
+ extern_printer_id?: string | null;
93780
95409
  id?: string;
93781
95410
  ip_adres?: string | null;
93782
95411
  laatst_gezien?: string | null;
@@ -93798,6 +95427,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
93798
95427
  agent_id?: string | null;
93799
95428
  created_at?: string;
93800
95429
  driver?: string;
95430
+ extern_printer_id?: string | null;
93801
95431
  id?: string;
93802
95432
  ip_adres?: string | null;
93803
95433
  laatst_gezien?: string | null;
@@ -99402,6 +101032,125 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
99402
101032
  };
99403
101033
  Returns: import("../integrations/supabase/types").Json;
99404
101034
  };
101035
+ claim_cloud_print_jobs: {
101036
+ Args: {
101037
+ _max?: number;
101038
+ };
101039
+ Returns: {
101040
+ agent_id: string | null;
101041
+ bron_job_id: string | null;
101042
+ created_at: string;
101043
+ documentnaam: string;
101044
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
101045
+ extern_job_id: string | null;
101046
+ foutmelding: string | null;
101047
+ gebruiker_id: string | null;
101048
+ gebruiker_naam: string;
101049
+ gestart_op: string | null;
101050
+ id: string;
101051
+ idempotentie_sleutel: string | null;
101052
+ is_herprint: boolean;
101053
+ kopieen: number;
101054
+ layout_id: string | null;
101055
+ opgepakt_op: string | null;
101056
+ paginas: number;
101057
+ payload: import("../integrations/supabase/types").Json;
101058
+ pdf_base64: string | null;
101059
+ pdf_url: string | null;
101060
+ pogingen: number;
101061
+ printer_id: string | null;
101062
+ render_html: string | null;
101063
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
101064
+ updated_at: string;
101065
+ volgende_poging: string | null;
101066
+ voltooid_op: string | null;
101067
+ }[];
101068
+ SetofOptions: {
101069
+ from: "*";
101070
+ to: "print_jobs";
101071
+ isOneToOne: false;
101072
+ isSetofReturn: true;
101073
+ };
101074
+ };
101075
+ claim_floriday_stock_queue: {
101076
+ Args: {
101077
+ p_limit?: number;
101078
+ p_worker?: string;
101079
+ };
101080
+ Returns: {
101081
+ attempts: number;
101082
+ connection_id: string;
101083
+ created_at: string;
101084
+ desired_available: boolean | null;
101085
+ gateway_attempt_id: string | null;
101086
+ id: string;
101087
+ last_error: string | null;
101088
+ locked_at: string | null;
101089
+ locked_by: string | null;
101090
+ next_attempt_at: string;
101091
+ number_of_pieces: number;
101092
+ sent_at: string | null;
101093
+ status: string;
101094
+ superseded_by: string | null;
101095
+ trade_item_id: string;
101096
+ updated_at: string;
101097
+ user_id: string;
101098
+ }[];
101099
+ SetofOptions: {
101100
+ from: "*";
101101
+ to: "floriday_continuous_stock_queue";
101102
+ isOneToOne: false;
101103
+ isSetofReturn: true;
101104
+ };
101105
+ };
101106
+ claim_logistics_tasks: {
101107
+ Args: {
101108
+ _limit?: number;
101109
+ _owner_module: string;
101110
+ _stale_minutes?: number;
101111
+ _task_type: string;
101112
+ _worker: string;
101113
+ };
101114
+ Returns: {
101115
+ attempt_log: import("../integrations/supabase/types").Json;
101116
+ attempts: number;
101117
+ buffer_ref: string | null;
101118
+ claimed_at: string | null;
101119
+ claimed_by: string | null;
101120
+ completed_at: string | null;
101121
+ created_at: string;
101122
+ depends_on: string[];
101123
+ due_at: string | null;
101124
+ error: string | null;
101125
+ id: string;
101126
+ last_error: string | null;
101127
+ next_attempt_at: string | null;
101128
+ order_ref: string;
101129
+ owner_module: string;
101130
+ payload: import("../integrations/supabase/types").Json;
101131
+ plan_run_id: string | null;
101132
+ planned_end: string | null;
101133
+ planned_start: string | null;
101134
+ priority: number;
101135
+ result: import("../integrations/supabase/types").Json | null;
101136
+ rule_config_id: string | null;
101137
+ rule_version: number | null;
101138
+ sequence: number;
101139
+ shadow: boolean;
101140
+ started_at: string | null;
101141
+ status: string;
101142
+ strategy_id: string | null;
101143
+ task_type: string;
101144
+ updated_at: string;
101145
+ user_id: string;
101146
+ }[];
101147
+ SetofOptions: {
101148
+ from: "*";
101149
+ to: "logistics_tasks";
101150
+ isOneToOne: false;
101151
+ isSetofReturn: true;
101152
+ };
101153
+ };
99405
101154
  claim_print_jobs: {
99406
101155
  Args: {
99407
101156
  _agent_id: string;
@@ -99413,22 +101162,27 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
99413
101162
  created_at: string;
99414
101163
  documentnaam: string;
99415
101164
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
101165
+ extern_job_id: string | null;
99416
101166
  foutmelding: string | null;
99417
101167
  gebruiker_id: string | null;
99418
101168
  gebruiker_naam: string;
99419
101169
  gestart_op: string | null;
99420
101170
  id: string;
101171
+ idempotentie_sleutel: string | null;
99421
101172
  is_herprint: boolean;
99422
101173
  kopieen: number;
99423
101174
  layout_id: string | null;
99424
101175
  opgepakt_op: string | null;
99425
101176
  paginas: number;
99426
101177
  payload: import("../integrations/supabase/types").Json;
101178
+ pdf_base64: string | null;
101179
+ pdf_url: string | null;
99427
101180
  pogingen: number;
99428
101181
  printer_id: string | null;
99429
101182
  render_html: string | null;
99430
101183
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
99431
101184
  updated_at: string;
101185
+ volgende_poging: string | null;
99432
101186
  voltooid_op: string | null;
99433
101187
  }[];
99434
101188
  SetofOptions: {
@@ -99466,10 +101220,24 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
99466
101220
  isSetofReturn: true;
99467
101221
  };
99468
101222
  };
101223
+ cleanup_floriday_stock_queue: {
101224
+ Args: never;
101225
+ Returns: undefined;
101226
+ };
99469
101227
  cleanup_old_bookings: {
99470
101228
  Args: never;
99471
101229
  Returns: undefined;
99472
101230
  };
101231
+ complete_floriday_stock_queue: {
101232
+ Args: {
101233
+ p_attempt_id?: string;
101234
+ p_error?: string;
101235
+ p_id: string;
101236
+ p_ok: boolean;
101237
+ p_permanent?: boolean;
101238
+ };
101239
+ Returns: undefined;
101240
+ };
99473
101241
  consume_bom_for_production: {
99474
101242
  Args: {
99475
101243
  p_connection_id: string;
@@ -99866,6 +101634,10 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
99866
101634
  };
99867
101635
  Returns: number;
99868
101636
  };
101637
+ get_offer_branding: {
101638
+ Args: never;
101639
+ Returns: import("../integrations/supabase/types").Json;
101640
+ };
99869
101641
  get_offer_by_link_code: {
99870
101642
  Args: {
99871
101643
  p_code: string;
@@ -100157,6 +101929,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
100157
101929
  p_worker?: string;
100158
101930
  };
100159
101931
  Returns: {
101932
+ attempt_log: import("../integrations/supabase/types").Json;
101933
+ attempts: number;
100160
101934
  buffer_ref: string | null;
100161
101935
  claimed_at: string | null;
100162
101936
  claimed_by: string | null;
@@ -100166,6 +101940,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
100166
101940
  due_at: string | null;
100167
101941
  error: string | null;
100168
101942
  id: string;
101943
+ last_error: string | null;
101944
+ next_attempt_at: string | null;
100169
101945
  order_ref: string;
100170
101946
  owner_module: string;
100171
101947
  payload: import("../integrations/supabase/types").Json;
@@ -100198,6 +101974,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
100198
101974
  p_worker?: string;
100199
101975
  };
100200
101976
  Returns: {
101977
+ attempt_log: import("../integrations/supabase/types").Json;
101978
+ attempts: number;
100201
101979
  buffer_ref: string | null;
100202
101980
  claimed_at: string | null;
100203
101981
  claimed_by: string | null;
@@ -100207,6 +101985,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
100207
101985
  due_at: string | null;
100208
101986
  error: string | null;
100209
101987
  id: string;
101988
+ last_error: string | null;
101989
+ next_attempt_at: string | null;
100210
101990
  order_ref: string;
100211
101991
  owner_module: string;
100212
101992
  payload: import("../integrations/supabase/types").Json;
@@ -100239,6 +102019,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
100239
102019
  p_task_id: string;
100240
102020
  };
100241
102021
  Returns: {
102022
+ attempt_log: import("../integrations/supabase/types").Json;
102023
+ attempts: number;
100242
102024
  buffer_ref: string | null;
100243
102025
  claimed_at: string | null;
100244
102026
  claimed_by: string | null;
@@ -100248,6 +102030,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
100248
102030
  due_at: string | null;
100249
102031
  error: string | null;
100250
102032
  id: string;
102033
+ last_error: string | null;
102034
+ next_attempt_at: string | null;
100251
102035
  order_ref: string;
100252
102036
  owner_module: string;
100253
102037
  payload: import("../integrations/supabase/types").Json;
@@ -100329,6 +102113,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
100329
102113
  p_task_id: string;
100330
102114
  };
100331
102115
  Returns: {
102116
+ attempt_log: import("../integrations/supabase/types").Json;
102117
+ attempts: number;
100332
102118
  buffer_ref: string | null;
100333
102119
  claimed_at: string | null;
100334
102120
  claimed_by: string | null;
@@ -100338,6 +102124,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
100338
102124
  due_at: string | null;
100339
102125
  error: string | null;
100340
102126
  id: string;
102127
+ last_error: string | null;
102128
+ next_attempt_at: string | null;
100341
102129
  order_ref: string;
100342
102130
  owner_module: string;
100343
102131
  payload: import("../integrations/supabase/types").Json;
@@ -100364,6 +102152,51 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
100364
102152
  isSetofReturn: false;
100365
102153
  };
100366
102154
  };
102155
+ logistics_floriday_claim_pushes: {
102156
+ Args: {
102157
+ _lease_seconds?: number;
102158
+ _limit?: number;
102159
+ _worker?: string;
102160
+ };
102161
+ Returns: {
102162
+ attempts: number;
102163
+ fulfillment_order_id: string;
102164
+ id: string;
102165
+ last_sent_hash: string;
102166
+ order_ref: string;
102167
+ payload: import("../integrations/supabase/types").Json;
102168
+ payload_hash: string;
102169
+ revision: number;
102170
+ }[];
102171
+ };
102172
+ logistics_floriday_finish_push: {
102173
+ Args: {
102174
+ _error?: string;
102175
+ _fulfillment_order_id?: string;
102176
+ _id: string;
102177
+ _max_age_hours?: number;
102178
+ _max_attempts?: number;
102179
+ _ok: boolean;
102180
+ _permanent?: boolean;
102181
+ _revision: number;
102182
+ _sent_hash?: string;
102183
+ };
102184
+ Returns: string;
102185
+ };
102186
+ logistics_floriday_prune_pushes: {
102187
+ Args: {
102188
+ _days?: number;
102189
+ };
102190
+ Returns: number;
102191
+ };
102192
+ logistics_floriday_queue_push: {
102193
+ Args: {
102194
+ _order_ref: string;
102195
+ _payload?: import("../integrations/supabase/types").Json;
102196
+ _payload_hash?: string;
102197
+ };
102198
+ Returns: string;
102199
+ };
100367
102200
  logistics_live_carriers: {
100368
102201
  Args: {
100369
102202
  p_order_ref: string;
@@ -100711,6 +102544,15 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
100711
102544
  };
100712
102545
  Returns: string;
100713
102546
  };
102547
+ pick_active_printers: {
102548
+ Args: never;
102549
+ Returns: {
102550
+ id: string;
102551
+ locatie: string;
102552
+ naam: string;
102553
+ online: boolean;
102554
+ }[];
102555
+ };
100714
102556
  pick_claim_document: {
100715
102557
  Args: {
100716
102558
  _queue_item_id: string;
@@ -100897,6 +102739,52 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
100897
102739
  };
100898
102740
  Returns: undefined;
100899
102741
  };
102742
+ pick_reset_print: {
102743
+ Args: {
102744
+ _queue_item_id: string;
102745
+ _session_id: string;
102746
+ };
102747
+ Returns: {
102748
+ announced_at: string;
102749
+ assigned_user_id: string | null;
102750
+ barcode: string | null;
102751
+ cancelled_at: string | null;
102752
+ cart_count: number;
102753
+ completed_at: string | null;
102754
+ country_code: string | null;
102755
+ created_at: string;
102756
+ customer_name: string | null;
102757
+ delivery_address: string | null;
102758
+ document_number: string | null;
102759
+ document_type_id: string | null;
102760
+ due_at: string | null;
102761
+ id: string;
102762
+ is_urgent: boolean;
102763
+ line_count: number;
102764
+ order_number: string | null;
102765
+ order_type: string | null;
102766
+ payload: import("../integrations/supabase/types").Json;
102767
+ print_count: number;
102768
+ print_job_id: string | null;
102769
+ printed_at: string | null;
102770
+ printed_by: string | null;
102771
+ printer_id: string | null;
102772
+ priority: number;
102773
+ reference: string | null;
102774
+ route: string | null;
102775
+ screen_id: string | null;
102776
+ station_id: string | null;
102777
+ status_id: string | null;
102778
+ updated_at: string;
102779
+ warnings: import("../integrations/supabase/types").Json;
102780
+ };
102781
+ SetofOptions: {
102782
+ from: "*";
102783
+ to: "pick_queue";
102784
+ isOneToOne: true;
102785
+ isSetofReturn: false;
102786
+ };
102787
+ };
100900
102788
  pick_station_dashboard: {
100901
102789
  Args: never;
100902
102790
  Returns: {
@@ -101087,10 +102975,20 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
101087
102975
  };
101088
102976
  Returns: import("../integrations/supabase/types").Json;
101089
102977
  };
102978
+ ruim_print_jobs_op: {
102979
+ Args: {
102980
+ _bewaar_dagen?: number;
102981
+ };
102982
+ Returns: number;
102983
+ };
101090
102984
  run_floriday_continuous_stock_sync: {
101091
102985
  Args: never;
101092
102986
  Returns: undefined;
101093
102987
  };
102988
+ run_logistics_tasks_dispatch: {
102989
+ Args: never;
102990
+ Returns: undefined;
102991
+ };
101094
102992
  run_twinfield_queue_tick: {
101095
102993
  Args: never;
101096
102994
  Returns: undefined;
@@ -101331,6 +103229,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
101331
103229
  };
101332
103230
  Returns: number;
101333
103231
  };
103232
+ schedule_floriday_stock_queue_process: {
103233
+ Args: {
103234
+ p_apikey: string;
103235
+ p_url: string;
103236
+ };
103237
+ Returns: number;
103238
+ };
101334
103239
  schedule_floriday_token_refresh: {
101335
103240
  Args: {
101336
103241
  p_apikey: string;
@@ -101520,7 +103425,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
101520
103425
  };
101521
103426
  Enums: {
101522
103427
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
101523
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
103428
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
101524
103429
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
101525
103430
  doc_orientation: "portrait" | "landscape";
101526
103431
  exact_env: "staging" | "live";