@flowselections/logistiek-engine 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -5695,12 +5695,17 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
5695
5695
  attempts: number;
5696
5696
  connection_id: string;
5697
5697
  created_at: string;
5698
+ desired_available: boolean | null;
5698
5699
  gateway_attempt_id: string | null;
5699
5700
  id: string;
5700
5701
  last_error: string | null;
5702
+ locked_at: string | null;
5703
+ locked_by: string | null;
5704
+ next_attempt_at: string;
5701
5705
  number_of_pieces: number;
5702
5706
  sent_at: string | null;
5703
5707
  status: string;
5708
+ superseded_by: string | null;
5704
5709
  trade_item_id: string;
5705
5710
  updated_at: string;
5706
5711
  user_id: string;
@@ -5709,12 +5714,17 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
5709
5714
  attempts?: number;
5710
5715
  connection_id: string;
5711
5716
  created_at?: string;
5717
+ desired_available?: boolean | null;
5712
5718
  gateway_attempt_id?: string | null;
5713
5719
  id?: string;
5714
5720
  last_error?: string | null;
5721
+ locked_at?: string | null;
5722
+ locked_by?: string | null;
5723
+ next_attempt_at?: string;
5715
5724
  number_of_pieces?: number;
5716
5725
  sent_at?: string | null;
5717
5726
  status?: string;
5727
+ superseded_by?: string | null;
5718
5728
  trade_item_id: string;
5719
5729
  updated_at?: string;
5720
5730
  user_id: string;
@@ -5723,12 +5733,17 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
5723
5733
  attempts?: number;
5724
5734
  connection_id?: string;
5725
5735
  created_at?: string;
5736
+ desired_available?: boolean | null;
5726
5737
  gateway_attempt_id?: string | null;
5727
5738
  id?: string;
5728
5739
  last_error?: string | null;
5740
+ locked_at?: string | null;
5741
+ locked_by?: string | null;
5742
+ next_attempt_at?: string;
5729
5743
  number_of_pieces?: number;
5730
5744
  sent_at?: string | null;
5731
5745
  status?: string;
5746
+ superseded_by?: string | null;
5732
5747
  trade_item_id?: string;
5733
5748
  updated_at?: string;
5734
5749
  user_id?: string;
@@ -8477,6 +8492,69 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
8477
8492
  };
8478
8493
  Relationships: [];
8479
8494
  };
8495
+ logistics_floriday_pushes: {
8496
+ Row: {
8497
+ attempts: number;
8498
+ created_at: string;
8499
+ first_queued_at: string;
8500
+ fulfillment_order_id: string | null;
8501
+ id: string;
8502
+ last_error: string | null;
8503
+ last_error_at: string | null;
8504
+ last_sent_hash: string | null;
8505
+ locked_by: string | null;
8506
+ locked_until: string | null;
8507
+ next_attempt_at: string;
8508
+ order_ref: string;
8509
+ payload: import("../integrations/supabase/types").Json;
8510
+ payload_hash: string | null;
8511
+ revision: number;
8512
+ sent_at: string | null;
8513
+ status: string;
8514
+ updated_at: string;
8515
+ };
8516
+ Insert: {
8517
+ attempts?: number;
8518
+ created_at?: string;
8519
+ first_queued_at?: string;
8520
+ fulfillment_order_id?: string | null;
8521
+ id?: string;
8522
+ last_error?: string | null;
8523
+ last_error_at?: string | null;
8524
+ last_sent_hash?: string | null;
8525
+ locked_by?: string | null;
8526
+ locked_until?: string | null;
8527
+ next_attempt_at?: string;
8528
+ order_ref: string;
8529
+ payload?: import("../integrations/supabase/types").Json;
8530
+ payload_hash?: string | null;
8531
+ revision?: number;
8532
+ sent_at?: string | null;
8533
+ status?: string;
8534
+ updated_at?: string;
8535
+ };
8536
+ Update: {
8537
+ attempts?: number;
8538
+ created_at?: string;
8539
+ first_queued_at?: string;
8540
+ fulfillment_order_id?: string | null;
8541
+ id?: string;
8542
+ last_error?: string | null;
8543
+ last_error_at?: string | null;
8544
+ last_sent_hash?: string | null;
8545
+ locked_by?: string | null;
8546
+ locked_until?: string | null;
8547
+ next_attempt_at?: string;
8548
+ order_ref?: string;
8549
+ payload?: import("../integrations/supabase/types").Json;
8550
+ payload_hash?: string | null;
8551
+ revision?: number;
8552
+ sent_at?: string | null;
8553
+ status?: string;
8554
+ updated_at?: string;
8555
+ };
8556
+ Relationships: [];
8557
+ };
8480
8558
  logistics_formulas: {
8481
8559
  Row: {
8482
8560
  created_at: string;
@@ -9088,6 +9166,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
9088
9166
  };
9089
9167
  logistics_tasks: {
9090
9168
  Row: {
9169
+ attempt_log: import("../integrations/supabase/types").Json;
9170
+ attempts: number;
9091
9171
  buffer_ref: string | null;
9092
9172
  claimed_at: string | null;
9093
9173
  claimed_by: string | null;
@@ -9097,6 +9177,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
9097
9177
  due_at: string | null;
9098
9178
  error: string | null;
9099
9179
  id: string;
9180
+ last_error: string | null;
9181
+ next_attempt_at: string | null;
9100
9182
  order_ref: string;
9101
9183
  owner_module: string;
9102
9184
  payload: import("../integrations/supabase/types").Json;
@@ -9117,6 +9199,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
9117
9199
  user_id: string;
9118
9200
  };
9119
9201
  Insert: {
9202
+ attempt_log?: import("../integrations/supabase/types").Json;
9203
+ attempts?: number;
9120
9204
  buffer_ref?: string | null;
9121
9205
  claimed_at?: string | null;
9122
9206
  claimed_by?: string | null;
@@ -9126,6 +9210,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
9126
9210
  due_at?: string | null;
9127
9211
  error?: string | null;
9128
9212
  id?: string;
9213
+ last_error?: string | null;
9214
+ next_attempt_at?: string | null;
9129
9215
  order_ref: string;
9130
9216
  owner_module: string;
9131
9217
  payload?: import("../integrations/supabase/types").Json;
@@ -9146,6 +9232,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
9146
9232
  user_id?: string;
9147
9233
  };
9148
9234
  Update: {
9235
+ attempt_log?: import("../integrations/supabase/types").Json;
9236
+ attempts?: number;
9149
9237
  buffer_ref?: string | null;
9150
9238
  claimed_at?: string | null;
9151
9239
  claimed_by?: string | null;
@@ -9155,6 +9243,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
9155
9243
  due_at?: string | null;
9156
9244
  error?: string | null;
9157
9245
  id?: string;
9246
+ last_error?: string | null;
9247
+ next_attempt_at?: string | null;
9158
9248
  order_ref?: string;
9159
9249
  owner_module?: string;
9160
9250
  payload?: import("../integrations/supabase/types").Json;
@@ -10504,6 +10594,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
10504
10594
  };
10505
10595
  offer_settings: {
10506
10596
  Row: {
10597
+ brand_name: string | null;
10507
10598
  button_color: string;
10508
10599
  created_at: string;
10509
10600
  default_countries: string[];
@@ -10525,6 +10616,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
10525
10616
  updated_at: string;
10526
10617
  };
10527
10618
  Insert: {
10619
+ brand_name?: string | null;
10528
10620
  button_color?: string;
10529
10621
  created_at?: string;
10530
10622
  default_countries?: string[];
@@ -10546,6 +10638,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
10546
10638
  updated_at?: string;
10547
10639
  };
10548
10640
  Update: {
10641
+ brand_name?: string | null;
10549
10642
  button_color?: string;
10550
10643
  created_at?: string;
10551
10644
  default_countries?: string[];
@@ -12264,22 +12357,27 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
12264
12357
  created_at: string;
12265
12358
  documentnaam: string;
12266
12359
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12360
+ extern_job_id: string | null;
12267
12361
  foutmelding: string | null;
12268
12362
  gebruiker_id: string | null;
12269
12363
  gebruiker_naam: string;
12270
12364
  gestart_op: string | null;
12271
12365
  id: string;
12366
+ idempotentie_sleutel: string | null;
12272
12367
  is_herprint: boolean;
12273
12368
  kopieen: number;
12274
12369
  layout_id: string | null;
12275
12370
  opgepakt_op: string | null;
12276
12371
  paginas: number;
12277
12372
  payload: import("../integrations/supabase/types").Json;
12373
+ pdf_base64: string | null;
12374
+ pdf_url: string | null;
12278
12375
  pogingen: number;
12279
12376
  printer_id: string | null;
12280
12377
  render_html: string | null;
12281
12378
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12282
12379
  updated_at: string;
12380
+ volgende_poging: string | null;
12283
12381
  voltooid_op: string | null;
12284
12382
  };
12285
12383
  Insert: {
@@ -12288,22 +12386,27 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
12288
12386
  created_at?: string;
12289
12387
  documentnaam?: string;
12290
12388
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12389
+ extern_job_id?: string | null;
12291
12390
  foutmelding?: string | null;
12292
12391
  gebruiker_id?: string | null;
12293
12392
  gebruiker_naam?: string;
12294
12393
  gestart_op?: string | null;
12295
12394
  id?: string;
12395
+ idempotentie_sleutel?: string | null;
12296
12396
  is_herprint?: boolean;
12297
12397
  kopieen?: number;
12298
12398
  layout_id?: string | null;
12299
12399
  opgepakt_op?: string | null;
12300
12400
  paginas?: number;
12301
12401
  payload?: import("../integrations/supabase/types").Json;
12402
+ pdf_base64?: string | null;
12403
+ pdf_url?: string | null;
12302
12404
  pogingen?: number;
12303
12405
  printer_id?: string | null;
12304
12406
  render_html?: string | null;
12305
12407
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12306
12408
  updated_at?: string;
12409
+ volgende_poging?: string | null;
12307
12410
  voltooid_op?: string | null;
12308
12411
  };
12309
12412
  Update: {
@@ -12312,22 +12415,27 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
12312
12415
  created_at?: string;
12313
12416
  documentnaam?: string;
12314
12417
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12418
+ extern_job_id?: string | null;
12315
12419
  foutmelding?: string | null;
12316
12420
  gebruiker_id?: string | null;
12317
12421
  gebruiker_naam?: string;
12318
12422
  gestart_op?: string | null;
12319
12423
  id?: string;
12424
+ idempotentie_sleutel?: string | null;
12320
12425
  is_herprint?: boolean;
12321
12426
  kopieen?: number;
12322
12427
  layout_id?: string | null;
12323
12428
  opgepakt_op?: string | null;
12324
12429
  paginas?: number;
12325
12430
  payload?: import("../integrations/supabase/types").Json;
12431
+ pdf_base64?: string | null;
12432
+ pdf_url?: string | null;
12326
12433
  pogingen?: number;
12327
12434
  printer_id?: string | null;
12328
12435
  render_html?: string | null;
12329
12436
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12330
12437
  updated_at?: string;
12438
+ volgende_poging?: string | null;
12331
12439
  voltooid_op?: string | null;
12332
12440
  };
12333
12441
  Relationships: [{
@@ -12510,6 +12618,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
12510
12618
  agent_id: string | null;
12511
12619
  created_at: string;
12512
12620
  driver: string;
12621
+ extern_printer_id: string | null;
12513
12622
  id: string;
12514
12623
  ip_adres: string | null;
12515
12624
  laatst_gezien: string | null;
@@ -12531,6 +12640,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
12531
12640
  agent_id?: string | null;
12532
12641
  created_at?: string;
12533
12642
  driver?: string;
12643
+ extern_printer_id?: string | null;
12534
12644
  id?: string;
12535
12645
  ip_adres?: string | null;
12536
12646
  laatst_gezien?: string | null;
@@ -12552,6 +12662,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
12552
12662
  agent_id?: string | null;
12553
12663
  created_at?: string;
12554
12664
  driver?: string;
12665
+ extern_printer_id?: string | null;
12555
12666
  id?: string;
12556
12667
  ip_adres?: string | null;
12557
12668
  laatst_gezien?: string | null;
@@ -18156,6 +18267,125 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18156
18267
  };
18157
18268
  Returns: import("../integrations/supabase/types").Json;
18158
18269
  };
18270
+ claim_cloud_print_jobs: {
18271
+ Args: {
18272
+ _max?: number;
18273
+ };
18274
+ Returns: {
18275
+ agent_id: string | null;
18276
+ bron_job_id: string | null;
18277
+ created_at: string;
18278
+ documentnaam: string;
18279
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18280
+ extern_job_id: string | null;
18281
+ foutmelding: string | null;
18282
+ gebruiker_id: string | null;
18283
+ gebruiker_naam: string;
18284
+ gestart_op: string | null;
18285
+ id: string;
18286
+ idempotentie_sleutel: string | null;
18287
+ is_herprint: boolean;
18288
+ kopieen: number;
18289
+ layout_id: string | null;
18290
+ opgepakt_op: string | null;
18291
+ paginas: number;
18292
+ payload: import("../integrations/supabase/types").Json;
18293
+ pdf_base64: string | null;
18294
+ pdf_url: string | null;
18295
+ pogingen: number;
18296
+ printer_id: string | null;
18297
+ render_html: string | null;
18298
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18299
+ updated_at: string;
18300
+ volgende_poging: string | null;
18301
+ voltooid_op: string | null;
18302
+ }[];
18303
+ SetofOptions: {
18304
+ from: "*";
18305
+ to: "print_jobs";
18306
+ isOneToOne: false;
18307
+ isSetofReturn: true;
18308
+ };
18309
+ };
18310
+ claim_floriday_stock_queue: {
18311
+ Args: {
18312
+ p_limit?: number;
18313
+ p_worker?: string;
18314
+ };
18315
+ Returns: {
18316
+ attempts: number;
18317
+ connection_id: string;
18318
+ created_at: string;
18319
+ desired_available: boolean | null;
18320
+ gateway_attempt_id: string | null;
18321
+ id: string;
18322
+ last_error: string | null;
18323
+ locked_at: string | null;
18324
+ locked_by: string | null;
18325
+ next_attempt_at: string;
18326
+ number_of_pieces: number;
18327
+ sent_at: string | null;
18328
+ status: string;
18329
+ superseded_by: string | null;
18330
+ trade_item_id: string;
18331
+ updated_at: string;
18332
+ user_id: string;
18333
+ }[];
18334
+ SetofOptions: {
18335
+ from: "*";
18336
+ to: "floriday_continuous_stock_queue";
18337
+ isOneToOne: false;
18338
+ isSetofReturn: true;
18339
+ };
18340
+ };
18341
+ claim_logistics_tasks: {
18342
+ Args: {
18343
+ _limit?: number;
18344
+ _owner_module: string;
18345
+ _stale_minutes?: number;
18346
+ _task_type: string;
18347
+ _worker: string;
18348
+ };
18349
+ Returns: {
18350
+ attempt_log: import("../integrations/supabase/types").Json;
18351
+ attempts: number;
18352
+ buffer_ref: string | null;
18353
+ claimed_at: string | null;
18354
+ claimed_by: string | null;
18355
+ completed_at: string | null;
18356
+ created_at: string;
18357
+ depends_on: string[];
18358
+ due_at: string | null;
18359
+ error: string | null;
18360
+ id: string;
18361
+ last_error: string | null;
18362
+ next_attempt_at: string | null;
18363
+ order_ref: string;
18364
+ owner_module: string;
18365
+ payload: import("../integrations/supabase/types").Json;
18366
+ plan_run_id: string | null;
18367
+ planned_end: string | null;
18368
+ planned_start: string | null;
18369
+ priority: number;
18370
+ result: import("../integrations/supabase/types").Json | null;
18371
+ rule_config_id: string | null;
18372
+ rule_version: number | null;
18373
+ sequence: number;
18374
+ shadow: boolean;
18375
+ started_at: string | null;
18376
+ status: string;
18377
+ strategy_id: string | null;
18378
+ task_type: string;
18379
+ updated_at: string;
18380
+ user_id: string;
18381
+ }[];
18382
+ SetofOptions: {
18383
+ from: "*";
18384
+ to: "logistics_tasks";
18385
+ isOneToOne: false;
18386
+ isSetofReturn: true;
18387
+ };
18388
+ };
18159
18389
  claim_print_jobs: {
18160
18390
  Args: {
18161
18391
  _agent_id: string;
@@ -18167,22 +18397,27 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18167
18397
  created_at: string;
18168
18398
  documentnaam: string;
18169
18399
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18400
+ extern_job_id: string | null;
18170
18401
  foutmelding: string | null;
18171
18402
  gebruiker_id: string | null;
18172
18403
  gebruiker_naam: string;
18173
18404
  gestart_op: string | null;
18174
18405
  id: string;
18406
+ idempotentie_sleutel: string | null;
18175
18407
  is_herprint: boolean;
18176
18408
  kopieen: number;
18177
18409
  layout_id: string | null;
18178
18410
  opgepakt_op: string | null;
18179
18411
  paginas: number;
18180
18412
  payload: import("../integrations/supabase/types").Json;
18413
+ pdf_base64: string | null;
18414
+ pdf_url: string | null;
18181
18415
  pogingen: number;
18182
18416
  printer_id: string | null;
18183
18417
  render_html: string | null;
18184
18418
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18185
18419
  updated_at: string;
18420
+ volgende_poging: string | null;
18186
18421
  voltooid_op: string | null;
18187
18422
  }[];
18188
18423
  SetofOptions: {
@@ -18220,10 +18455,24 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18220
18455
  isSetofReturn: true;
18221
18456
  };
18222
18457
  };
18458
+ cleanup_floriday_stock_queue: {
18459
+ Args: never;
18460
+ Returns: undefined;
18461
+ };
18223
18462
  cleanup_old_bookings: {
18224
18463
  Args: never;
18225
18464
  Returns: undefined;
18226
18465
  };
18466
+ complete_floriday_stock_queue: {
18467
+ Args: {
18468
+ p_attempt_id?: string;
18469
+ p_error?: string;
18470
+ p_id: string;
18471
+ p_ok: boolean;
18472
+ p_permanent?: boolean;
18473
+ };
18474
+ Returns: undefined;
18475
+ };
18227
18476
  consume_bom_for_production: {
18228
18477
  Args: {
18229
18478
  p_connection_id: string;
@@ -18620,6 +18869,10 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18620
18869
  };
18621
18870
  Returns: number;
18622
18871
  };
18872
+ get_offer_branding: {
18873
+ Args: never;
18874
+ Returns: import("../integrations/supabase/types").Json;
18875
+ };
18623
18876
  get_offer_by_link_code: {
18624
18877
  Args: {
18625
18878
  p_code: string;
@@ -18911,6 +19164,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18911
19164
  p_worker?: string;
18912
19165
  };
18913
19166
  Returns: {
19167
+ attempt_log: import("../integrations/supabase/types").Json;
19168
+ attempts: number;
18914
19169
  buffer_ref: string | null;
18915
19170
  claimed_at: string | null;
18916
19171
  claimed_by: string | null;
@@ -18920,6 +19175,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18920
19175
  due_at: string | null;
18921
19176
  error: string | null;
18922
19177
  id: string;
19178
+ last_error: string | null;
19179
+ next_attempt_at: string | null;
18923
19180
  order_ref: string;
18924
19181
  owner_module: string;
18925
19182
  payload: import("../integrations/supabase/types").Json;
@@ -18952,6 +19209,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18952
19209
  p_worker?: string;
18953
19210
  };
18954
19211
  Returns: {
19212
+ attempt_log: import("../integrations/supabase/types").Json;
19213
+ attempts: number;
18955
19214
  buffer_ref: string | null;
18956
19215
  claimed_at: string | null;
18957
19216
  claimed_by: string | null;
@@ -18961,6 +19220,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18961
19220
  due_at: string | null;
18962
19221
  error: string | null;
18963
19222
  id: string;
19223
+ last_error: string | null;
19224
+ next_attempt_at: string | null;
18964
19225
  order_ref: string;
18965
19226
  owner_module: string;
18966
19227
  payload: import("../integrations/supabase/types").Json;
@@ -18993,6 +19254,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18993
19254
  p_task_id: string;
18994
19255
  };
18995
19256
  Returns: {
19257
+ attempt_log: import("../integrations/supabase/types").Json;
19258
+ attempts: number;
18996
19259
  buffer_ref: string | null;
18997
19260
  claimed_at: string | null;
18998
19261
  claimed_by: string | null;
@@ -19002,6 +19265,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
19002
19265
  due_at: string | null;
19003
19266
  error: string | null;
19004
19267
  id: string;
19268
+ last_error: string | null;
19269
+ next_attempt_at: string | null;
19005
19270
  order_ref: string;
19006
19271
  owner_module: string;
19007
19272
  payload: import("../integrations/supabase/types").Json;
@@ -19083,6 +19348,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
19083
19348
  p_task_id: string;
19084
19349
  };
19085
19350
  Returns: {
19351
+ attempt_log: import("../integrations/supabase/types").Json;
19352
+ attempts: number;
19086
19353
  buffer_ref: string | null;
19087
19354
  claimed_at: string | null;
19088
19355
  claimed_by: string | null;
@@ -19092,6 +19359,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
19092
19359
  due_at: string | null;
19093
19360
  error: string | null;
19094
19361
  id: string;
19362
+ last_error: string | null;
19363
+ next_attempt_at: string | null;
19095
19364
  order_ref: string;
19096
19365
  owner_module: string;
19097
19366
  payload: import("../integrations/supabase/types").Json;
@@ -19118,6 +19387,51 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
19118
19387
  isSetofReturn: false;
19119
19388
  };
19120
19389
  };
19390
+ logistics_floriday_claim_pushes: {
19391
+ Args: {
19392
+ _lease_seconds?: number;
19393
+ _limit?: number;
19394
+ _worker?: string;
19395
+ };
19396
+ Returns: {
19397
+ attempts: number;
19398
+ fulfillment_order_id: string;
19399
+ id: string;
19400
+ last_sent_hash: string;
19401
+ order_ref: string;
19402
+ payload: import("../integrations/supabase/types").Json;
19403
+ payload_hash: string;
19404
+ revision: number;
19405
+ }[];
19406
+ };
19407
+ logistics_floriday_finish_push: {
19408
+ Args: {
19409
+ _error?: string;
19410
+ _fulfillment_order_id?: string;
19411
+ _id: string;
19412
+ _max_age_hours?: number;
19413
+ _max_attempts?: number;
19414
+ _ok: boolean;
19415
+ _permanent?: boolean;
19416
+ _revision: number;
19417
+ _sent_hash?: string;
19418
+ };
19419
+ Returns: string;
19420
+ };
19421
+ logistics_floriday_prune_pushes: {
19422
+ Args: {
19423
+ _days?: number;
19424
+ };
19425
+ Returns: number;
19426
+ };
19427
+ logistics_floriday_queue_push: {
19428
+ Args: {
19429
+ _order_ref: string;
19430
+ _payload?: import("../integrations/supabase/types").Json;
19431
+ _payload_hash?: string;
19432
+ };
19433
+ Returns: string;
19434
+ };
19121
19435
  logistics_live_carriers: {
19122
19436
  Args: {
19123
19437
  p_order_ref: string;
@@ -19465,6 +19779,15 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
19465
19779
  };
19466
19780
  Returns: string;
19467
19781
  };
19782
+ pick_active_printers: {
19783
+ Args: never;
19784
+ Returns: {
19785
+ id: string;
19786
+ locatie: string;
19787
+ naam: string;
19788
+ online: boolean;
19789
+ }[];
19790
+ };
19468
19791
  pick_claim_document: {
19469
19792
  Args: {
19470
19793
  _queue_item_id: string;
@@ -19651,6 +19974,52 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
19651
19974
  };
19652
19975
  Returns: undefined;
19653
19976
  };
19977
+ pick_reset_print: {
19978
+ Args: {
19979
+ _queue_item_id: string;
19980
+ _session_id: string;
19981
+ };
19982
+ Returns: {
19983
+ announced_at: string;
19984
+ assigned_user_id: string | null;
19985
+ barcode: string | null;
19986
+ cancelled_at: string | null;
19987
+ cart_count: number;
19988
+ completed_at: string | null;
19989
+ country_code: string | null;
19990
+ created_at: string;
19991
+ customer_name: string | null;
19992
+ delivery_address: string | null;
19993
+ document_number: string | null;
19994
+ document_type_id: string | null;
19995
+ due_at: string | null;
19996
+ id: string;
19997
+ is_urgent: boolean;
19998
+ line_count: number;
19999
+ order_number: string | null;
20000
+ order_type: string | null;
20001
+ payload: import("../integrations/supabase/types").Json;
20002
+ print_count: number;
20003
+ print_job_id: string | null;
20004
+ printed_at: string | null;
20005
+ printed_by: string | null;
20006
+ printer_id: string | null;
20007
+ priority: number;
20008
+ reference: string | null;
20009
+ route: string | null;
20010
+ screen_id: string | null;
20011
+ station_id: string | null;
20012
+ status_id: string | null;
20013
+ updated_at: string;
20014
+ warnings: import("../integrations/supabase/types").Json;
20015
+ };
20016
+ SetofOptions: {
20017
+ from: "*";
20018
+ to: "pick_queue";
20019
+ isOneToOne: true;
20020
+ isSetofReturn: false;
20021
+ };
20022
+ };
19654
20023
  pick_station_dashboard: {
19655
20024
  Args: never;
19656
20025
  Returns: {
@@ -19841,10 +20210,20 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
19841
20210
  };
19842
20211
  Returns: import("../integrations/supabase/types").Json;
19843
20212
  };
20213
+ ruim_print_jobs_op: {
20214
+ Args: {
20215
+ _bewaar_dagen?: number;
20216
+ };
20217
+ Returns: number;
20218
+ };
19844
20219
  run_floriday_continuous_stock_sync: {
19845
20220
  Args: never;
19846
20221
  Returns: undefined;
19847
20222
  };
20223
+ run_logistics_tasks_dispatch: {
20224
+ Args: never;
20225
+ Returns: undefined;
20226
+ };
19848
20227
  run_twinfield_queue_tick: {
19849
20228
  Args: never;
19850
20229
  Returns: undefined;
@@ -20085,6 +20464,13 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
20085
20464
  };
20086
20465
  Returns: number;
20087
20466
  };
20467
+ schedule_floriday_stock_queue_process: {
20468
+ Args: {
20469
+ p_apikey: string;
20470
+ p_url: string;
20471
+ };
20472
+ Returns: number;
20473
+ };
20088
20474
  schedule_floriday_token_refresh: {
20089
20475
  Args: {
20090
20476
  p_apikey: string;
@@ -20274,7 +20660,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
20274
20660
  };
20275
20661
  Enums: {
20276
20662
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20277
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20663
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20278
20664
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20279
20665
  doc_orientation: "portrait" | "landscape";
20280
20666
  exact_env: "staging" | "live";
@@ -25991,12 +26377,17 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
25991
26377
  attempts: number;
25992
26378
  connection_id: string;
25993
26379
  created_at: string;
26380
+ desired_available: boolean | null;
25994
26381
  gateway_attempt_id: string | null;
25995
26382
  id: string;
25996
26383
  last_error: string | null;
26384
+ locked_at: string | null;
26385
+ locked_by: string | null;
26386
+ next_attempt_at: string;
25997
26387
  number_of_pieces: number;
25998
26388
  sent_at: string | null;
25999
26389
  status: string;
26390
+ superseded_by: string | null;
26000
26391
  trade_item_id: string;
26001
26392
  updated_at: string;
26002
26393
  user_id: string;
@@ -26005,12 +26396,17 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
26005
26396
  attempts?: number;
26006
26397
  connection_id: string;
26007
26398
  created_at?: string;
26399
+ desired_available?: boolean | null;
26008
26400
  gateway_attempt_id?: string | null;
26009
26401
  id?: string;
26010
26402
  last_error?: string | null;
26403
+ locked_at?: string | null;
26404
+ locked_by?: string | null;
26405
+ next_attempt_at?: string;
26011
26406
  number_of_pieces?: number;
26012
26407
  sent_at?: string | null;
26013
26408
  status?: string;
26409
+ superseded_by?: string | null;
26014
26410
  trade_item_id: string;
26015
26411
  updated_at?: string;
26016
26412
  user_id: string;
@@ -26019,12 +26415,17 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
26019
26415
  attempts?: number;
26020
26416
  connection_id?: string;
26021
26417
  created_at?: string;
26418
+ desired_available?: boolean | null;
26022
26419
  gateway_attempt_id?: string | null;
26023
26420
  id?: string;
26024
26421
  last_error?: string | null;
26422
+ locked_at?: string | null;
26423
+ locked_by?: string | null;
26424
+ next_attempt_at?: string;
26025
26425
  number_of_pieces?: number;
26026
26426
  sent_at?: string | null;
26027
26427
  status?: string;
26428
+ superseded_by?: string | null;
26028
26429
  trade_item_id?: string;
26029
26430
  updated_at?: string;
26030
26431
  user_id?: string;
@@ -28773,6 +29174,69 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
28773
29174
  };
28774
29175
  Relationships: [];
28775
29176
  };
29177
+ logistics_floriday_pushes: {
29178
+ Row: {
29179
+ attempts: number;
29180
+ created_at: string;
29181
+ first_queued_at: string;
29182
+ fulfillment_order_id: string | null;
29183
+ id: string;
29184
+ last_error: string | null;
29185
+ last_error_at: string | null;
29186
+ last_sent_hash: string | null;
29187
+ locked_by: string | null;
29188
+ locked_until: string | null;
29189
+ next_attempt_at: string;
29190
+ order_ref: string;
29191
+ payload: import("../integrations/supabase/types").Json;
29192
+ payload_hash: string | null;
29193
+ revision: number;
29194
+ sent_at: string | null;
29195
+ status: string;
29196
+ updated_at: string;
29197
+ };
29198
+ Insert: {
29199
+ attempts?: number;
29200
+ created_at?: string;
29201
+ first_queued_at?: string;
29202
+ fulfillment_order_id?: string | null;
29203
+ id?: string;
29204
+ last_error?: string | null;
29205
+ last_error_at?: string | null;
29206
+ last_sent_hash?: string | null;
29207
+ locked_by?: string | null;
29208
+ locked_until?: string | null;
29209
+ next_attempt_at?: string;
29210
+ order_ref: string;
29211
+ payload?: import("../integrations/supabase/types").Json;
29212
+ payload_hash?: string | null;
29213
+ revision?: number;
29214
+ sent_at?: string | null;
29215
+ status?: string;
29216
+ updated_at?: string;
29217
+ };
29218
+ Update: {
29219
+ attempts?: number;
29220
+ created_at?: string;
29221
+ first_queued_at?: string;
29222
+ fulfillment_order_id?: string | null;
29223
+ id?: string;
29224
+ last_error?: string | null;
29225
+ last_error_at?: string | null;
29226
+ last_sent_hash?: string | null;
29227
+ locked_by?: string | null;
29228
+ locked_until?: string | null;
29229
+ next_attempt_at?: string;
29230
+ order_ref?: string;
29231
+ payload?: import("../integrations/supabase/types").Json;
29232
+ payload_hash?: string | null;
29233
+ revision?: number;
29234
+ sent_at?: string | null;
29235
+ status?: string;
29236
+ updated_at?: string;
29237
+ };
29238
+ Relationships: [];
29239
+ };
28776
29240
  logistics_formulas: {
28777
29241
  Row: {
28778
29242
  created_at: string;
@@ -29384,6 +29848,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
29384
29848
  };
29385
29849
  logistics_tasks: {
29386
29850
  Row: {
29851
+ attempt_log: import("../integrations/supabase/types").Json;
29852
+ attempts: number;
29387
29853
  buffer_ref: string | null;
29388
29854
  claimed_at: string | null;
29389
29855
  claimed_by: string | null;
@@ -29393,6 +29859,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
29393
29859
  due_at: string | null;
29394
29860
  error: string | null;
29395
29861
  id: string;
29862
+ last_error: string | null;
29863
+ next_attempt_at: string | null;
29396
29864
  order_ref: string;
29397
29865
  owner_module: string;
29398
29866
  payload: import("../integrations/supabase/types").Json;
@@ -29413,6 +29881,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
29413
29881
  user_id: string;
29414
29882
  };
29415
29883
  Insert: {
29884
+ attempt_log?: import("../integrations/supabase/types").Json;
29885
+ attempts?: number;
29416
29886
  buffer_ref?: string | null;
29417
29887
  claimed_at?: string | null;
29418
29888
  claimed_by?: string | null;
@@ -29422,6 +29892,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
29422
29892
  due_at?: string | null;
29423
29893
  error?: string | null;
29424
29894
  id?: string;
29895
+ last_error?: string | null;
29896
+ next_attempt_at?: string | null;
29425
29897
  order_ref: string;
29426
29898
  owner_module: string;
29427
29899
  payload?: import("../integrations/supabase/types").Json;
@@ -29442,6 +29914,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
29442
29914
  user_id?: string;
29443
29915
  };
29444
29916
  Update: {
29917
+ attempt_log?: import("../integrations/supabase/types").Json;
29918
+ attempts?: number;
29445
29919
  buffer_ref?: string | null;
29446
29920
  claimed_at?: string | null;
29447
29921
  claimed_by?: string | null;
@@ -29451,6 +29925,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
29451
29925
  due_at?: string | null;
29452
29926
  error?: string | null;
29453
29927
  id?: string;
29928
+ last_error?: string | null;
29929
+ next_attempt_at?: string | null;
29454
29930
  order_ref?: string;
29455
29931
  owner_module?: string;
29456
29932
  payload?: import("../integrations/supabase/types").Json;
@@ -30800,6 +31276,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
30800
31276
  };
30801
31277
  offer_settings: {
30802
31278
  Row: {
31279
+ brand_name: string | null;
30803
31280
  button_color: string;
30804
31281
  created_at: string;
30805
31282
  default_countries: string[];
@@ -30821,6 +31298,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
30821
31298
  updated_at: string;
30822
31299
  };
30823
31300
  Insert: {
31301
+ brand_name?: string | null;
30824
31302
  button_color?: string;
30825
31303
  created_at?: string;
30826
31304
  default_countries?: string[];
@@ -30842,6 +31320,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
30842
31320
  updated_at?: string;
30843
31321
  };
30844
31322
  Update: {
31323
+ brand_name?: string | null;
30845
31324
  button_color?: string;
30846
31325
  created_at?: string;
30847
31326
  default_countries?: string[];
@@ -32560,22 +33039,27 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
32560
33039
  created_at: string;
32561
33040
  documentnaam: string;
32562
33041
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33042
+ extern_job_id: string | null;
32563
33043
  foutmelding: string | null;
32564
33044
  gebruiker_id: string | null;
32565
33045
  gebruiker_naam: string;
32566
33046
  gestart_op: string | null;
32567
33047
  id: string;
33048
+ idempotentie_sleutel: string | null;
32568
33049
  is_herprint: boolean;
32569
33050
  kopieen: number;
32570
33051
  layout_id: string | null;
32571
33052
  opgepakt_op: string | null;
32572
33053
  paginas: number;
32573
33054
  payload: import("../integrations/supabase/types").Json;
33055
+ pdf_base64: string | null;
33056
+ pdf_url: string | null;
32574
33057
  pogingen: number;
32575
33058
  printer_id: string | null;
32576
33059
  render_html: string | null;
32577
33060
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32578
33061
  updated_at: string;
33062
+ volgende_poging: string | null;
32579
33063
  voltooid_op: string | null;
32580
33064
  };
32581
33065
  Insert: {
@@ -32584,22 +33068,27 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
32584
33068
  created_at?: string;
32585
33069
  documentnaam?: string;
32586
33070
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33071
+ extern_job_id?: string | null;
32587
33072
  foutmelding?: string | null;
32588
33073
  gebruiker_id?: string | null;
32589
33074
  gebruiker_naam?: string;
32590
33075
  gestart_op?: string | null;
32591
33076
  id?: string;
33077
+ idempotentie_sleutel?: string | null;
32592
33078
  is_herprint?: boolean;
32593
33079
  kopieen?: number;
32594
33080
  layout_id?: string | null;
32595
33081
  opgepakt_op?: string | null;
32596
33082
  paginas?: number;
32597
33083
  payload?: import("../integrations/supabase/types").Json;
33084
+ pdf_base64?: string | null;
33085
+ pdf_url?: string | null;
32598
33086
  pogingen?: number;
32599
33087
  printer_id?: string | null;
32600
33088
  render_html?: string | null;
32601
33089
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32602
33090
  updated_at?: string;
33091
+ volgende_poging?: string | null;
32603
33092
  voltooid_op?: string | null;
32604
33093
  };
32605
33094
  Update: {
@@ -32608,22 +33097,27 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
32608
33097
  created_at?: string;
32609
33098
  documentnaam?: string;
32610
33099
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33100
+ extern_job_id?: string | null;
32611
33101
  foutmelding?: string | null;
32612
33102
  gebruiker_id?: string | null;
32613
33103
  gebruiker_naam?: string;
32614
33104
  gestart_op?: string | null;
32615
33105
  id?: string;
33106
+ idempotentie_sleutel?: string | null;
32616
33107
  is_herprint?: boolean;
32617
33108
  kopieen?: number;
32618
33109
  layout_id?: string | null;
32619
33110
  opgepakt_op?: string | null;
32620
33111
  paginas?: number;
32621
33112
  payload?: import("../integrations/supabase/types").Json;
33113
+ pdf_base64?: string | null;
33114
+ pdf_url?: string | null;
32622
33115
  pogingen?: number;
32623
33116
  printer_id?: string | null;
32624
33117
  render_html?: string | null;
32625
33118
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32626
33119
  updated_at?: string;
33120
+ volgende_poging?: string | null;
32627
33121
  voltooid_op?: string | null;
32628
33122
  };
32629
33123
  Relationships: [{
@@ -32806,6 +33300,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
32806
33300
  agent_id: string | null;
32807
33301
  created_at: string;
32808
33302
  driver: string;
33303
+ extern_printer_id: string | null;
32809
33304
  id: string;
32810
33305
  ip_adres: string | null;
32811
33306
  laatst_gezien: string | null;
@@ -32827,6 +33322,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
32827
33322
  agent_id?: string | null;
32828
33323
  created_at?: string;
32829
33324
  driver?: string;
33325
+ extern_printer_id?: string | null;
32830
33326
  id?: string;
32831
33327
  ip_adres?: string | null;
32832
33328
  laatst_gezien?: string | null;
@@ -32848,6 +33344,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
32848
33344
  agent_id?: string | null;
32849
33345
  created_at?: string;
32850
33346
  driver?: string;
33347
+ extern_printer_id?: string | null;
32851
33348
  id?: string;
32852
33349
  ip_adres?: string | null;
32853
33350
  laatst_gezien?: string | null;
@@ -38452,6 +38949,125 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
38452
38949
  };
38453
38950
  Returns: import("../integrations/supabase/types").Json;
38454
38951
  };
38952
+ claim_cloud_print_jobs: {
38953
+ Args: {
38954
+ _max?: number;
38955
+ };
38956
+ Returns: {
38957
+ agent_id: string | null;
38958
+ bron_job_id: string | null;
38959
+ created_at: string;
38960
+ documentnaam: string;
38961
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
38962
+ extern_job_id: string | null;
38963
+ foutmelding: string | null;
38964
+ gebruiker_id: string | null;
38965
+ gebruiker_naam: string;
38966
+ gestart_op: string | null;
38967
+ id: string;
38968
+ idempotentie_sleutel: string | null;
38969
+ is_herprint: boolean;
38970
+ kopieen: number;
38971
+ layout_id: string | null;
38972
+ opgepakt_op: string | null;
38973
+ paginas: number;
38974
+ payload: import("../integrations/supabase/types").Json;
38975
+ pdf_base64: string | null;
38976
+ pdf_url: string | null;
38977
+ pogingen: number;
38978
+ printer_id: string | null;
38979
+ render_html: string | null;
38980
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38981
+ updated_at: string;
38982
+ volgende_poging: string | null;
38983
+ voltooid_op: string | null;
38984
+ }[];
38985
+ SetofOptions: {
38986
+ from: "*";
38987
+ to: "print_jobs";
38988
+ isOneToOne: false;
38989
+ isSetofReturn: true;
38990
+ };
38991
+ };
38992
+ claim_floriday_stock_queue: {
38993
+ Args: {
38994
+ p_limit?: number;
38995
+ p_worker?: string;
38996
+ };
38997
+ Returns: {
38998
+ attempts: number;
38999
+ connection_id: string;
39000
+ created_at: string;
39001
+ desired_available: boolean | null;
39002
+ gateway_attempt_id: string | null;
39003
+ id: string;
39004
+ last_error: string | null;
39005
+ locked_at: string | null;
39006
+ locked_by: string | null;
39007
+ next_attempt_at: string;
39008
+ number_of_pieces: number;
39009
+ sent_at: string | null;
39010
+ status: string;
39011
+ superseded_by: string | null;
39012
+ trade_item_id: string;
39013
+ updated_at: string;
39014
+ user_id: string;
39015
+ }[];
39016
+ SetofOptions: {
39017
+ from: "*";
39018
+ to: "floriday_continuous_stock_queue";
39019
+ isOneToOne: false;
39020
+ isSetofReturn: true;
39021
+ };
39022
+ };
39023
+ claim_logistics_tasks: {
39024
+ Args: {
39025
+ _limit?: number;
39026
+ _owner_module: string;
39027
+ _stale_minutes?: number;
39028
+ _task_type: string;
39029
+ _worker: string;
39030
+ };
39031
+ Returns: {
39032
+ attempt_log: import("../integrations/supabase/types").Json;
39033
+ attempts: number;
39034
+ buffer_ref: string | null;
39035
+ claimed_at: string | null;
39036
+ claimed_by: string | null;
39037
+ completed_at: string | null;
39038
+ created_at: string;
39039
+ depends_on: string[];
39040
+ due_at: string | null;
39041
+ error: string | null;
39042
+ id: string;
39043
+ last_error: string | null;
39044
+ next_attempt_at: string | null;
39045
+ order_ref: string;
39046
+ owner_module: string;
39047
+ payload: import("../integrations/supabase/types").Json;
39048
+ plan_run_id: string | null;
39049
+ planned_end: string | null;
39050
+ planned_start: string | null;
39051
+ priority: number;
39052
+ result: import("../integrations/supabase/types").Json | null;
39053
+ rule_config_id: string | null;
39054
+ rule_version: number | null;
39055
+ sequence: number;
39056
+ shadow: boolean;
39057
+ started_at: string | null;
39058
+ status: string;
39059
+ strategy_id: string | null;
39060
+ task_type: string;
39061
+ updated_at: string;
39062
+ user_id: string;
39063
+ }[];
39064
+ SetofOptions: {
39065
+ from: "*";
39066
+ to: "logistics_tasks";
39067
+ isOneToOne: false;
39068
+ isSetofReturn: true;
39069
+ };
39070
+ };
38455
39071
  claim_print_jobs: {
38456
39072
  Args: {
38457
39073
  _agent_id: string;
@@ -38463,22 +39079,27 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
38463
39079
  created_at: string;
38464
39080
  documentnaam: string;
38465
39081
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39082
+ extern_job_id: string | null;
38466
39083
  foutmelding: string | null;
38467
39084
  gebruiker_id: string | null;
38468
39085
  gebruiker_naam: string;
38469
39086
  gestart_op: string | null;
38470
39087
  id: string;
39088
+ idempotentie_sleutel: string | null;
38471
39089
  is_herprint: boolean;
38472
39090
  kopieen: number;
38473
39091
  layout_id: string | null;
38474
39092
  opgepakt_op: string | null;
38475
39093
  paginas: number;
38476
39094
  payload: import("../integrations/supabase/types").Json;
39095
+ pdf_base64: string | null;
39096
+ pdf_url: string | null;
38477
39097
  pogingen: number;
38478
39098
  printer_id: string | null;
38479
39099
  render_html: string | null;
38480
39100
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38481
39101
  updated_at: string;
39102
+ volgende_poging: string | null;
38482
39103
  voltooid_op: string | null;
38483
39104
  }[];
38484
39105
  SetofOptions: {
@@ -38516,10 +39137,24 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
38516
39137
  isSetofReturn: true;
38517
39138
  };
38518
39139
  };
39140
+ cleanup_floriday_stock_queue: {
39141
+ Args: never;
39142
+ Returns: undefined;
39143
+ };
38519
39144
  cleanup_old_bookings: {
38520
39145
  Args: never;
38521
39146
  Returns: undefined;
38522
39147
  };
39148
+ complete_floriday_stock_queue: {
39149
+ Args: {
39150
+ p_attempt_id?: string;
39151
+ p_error?: string;
39152
+ p_id: string;
39153
+ p_ok: boolean;
39154
+ p_permanent?: boolean;
39155
+ };
39156
+ Returns: undefined;
39157
+ };
38523
39158
  consume_bom_for_production: {
38524
39159
  Args: {
38525
39160
  p_connection_id: string;
@@ -38916,6 +39551,10 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
38916
39551
  };
38917
39552
  Returns: number;
38918
39553
  };
39554
+ get_offer_branding: {
39555
+ Args: never;
39556
+ Returns: import("../integrations/supabase/types").Json;
39557
+ };
38919
39558
  get_offer_by_link_code: {
38920
39559
  Args: {
38921
39560
  p_code: string;
@@ -39207,6 +39846,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
39207
39846
  p_worker?: string;
39208
39847
  };
39209
39848
  Returns: {
39849
+ attempt_log: import("../integrations/supabase/types").Json;
39850
+ attempts: number;
39210
39851
  buffer_ref: string | null;
39211
39852
  claimed_at: string | null;
39212
39853
  claimed_by: string | null;
@@ -39216,6 +39857,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
39216
39857
  due_at: string | null;
39217
39858
  error: string | null;
39218
39859
  id: string;
39860
+ last_error: string | null;
39861
+ next_attempt_at: string | null;
39219
39862
  order_ref: string;
39220
39863
  owner_module: string;
39221
39864
  payload: import("../integrations/supabase/types").Json;
@@ -39248,6 +39891,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
39248
39891
  p_worker?: string;
39249
39892
  };
39250
39893
  Returns: {
39894
+ attempt_log: import("../integrations/supabase/types").Json;
39895
+ attempts: number;
39251
39896
  buffer_ref: string | null;
39252
39897
  claimed_at: string | null;
39253
39898
  claimed_by: string | null;
@@ -39257,6 +39902,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
39257
39902
  due_at: string | null;
39258
39903
  error: string | null;
39259
39904
  id: string;
39905
+ last_error: string | null;
39906
+ next_attempt_at: string | null;
39260
39907
  order_ref: string;
39261
39908
  owner_module: string;
39262
39909
  payload: import("../integrations/supabase/types").Json;
@@ -39289,6 +39936,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
39289
39936
  p_task_id: string;
39290
39937
  };
39291
39938
  Returns: {
39939
+ attempt_log: import("../integrations/supabase/types").Json;
39940
+ attempts: number;
39292
39941
  buffer_ref: string | null;
39293
39942
  claimed_at: string | null;
39294
39943
  claimed_by: string | null;
@@ -39298,6 +39947,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
39298
39947
  due_at: string | null;
39299
39948
  error: string | null;
39300
39949
  id: string;
39950
+ last_error: string | null;
39951
+ next_attempt_at: string | null;
39301
39952
  order_ref: string;
39302
39953
  owner_module: string;
39303
39954
  payload: import("../integrations/supabase/types").Json;
@@ -39379,6 +40030,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
39379
40030
  p_task_id: string;
39380
40031
  };
39381
40032
  Returns: {
40033
+ attempt_log: import("../integrations/supabase/types").Json;
40034
+ attempts: number;
39382
40035
  buffer_ref: string | null;
39383
40036
  claimed_at: string | null;
39384
40037
  claimed_by: string | null;
@@ -39388,6 +40041,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
39388
40041
  due_at: string | null;
39389
40042
  error: string | null;
39390
40043
  id: string;
40044
+ last_error: string | null;
40045
+ next_attempt_at: string | null;
39391
40046
  order_ref: string;
39392
40047
  owner_module: string;
39393
40048
  payload: import("../integrations/supabase/types").Json;
@@ -39414,6 +40069,51 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
39414
40069
  isSetofReturn: false;
39415
40070
  };
39416
40071
  };
40072
+ logistics_floriday_claim_pushes: {
40073
+ Args: {
40074
+ _lease_seconds?: number;
40075
+ _limit?: number;
40076
+ _worker?: string;
40077
+ };
40078
+ Returns: {
40079
+ attempts: number;
40080
+ fulfillment_order_id: string;
40081
+ id: string;
40082
+ last_sent_hash: string;
40083
+ order_ref: string;
40084
+ payload: import("../integrations/supabase/types").Json;
40085
+ payload_hash: string;
40086
+ revision: number;
40087
+ }[];
40088
+ };
40089
+ logistics_floriday_finish_push: {
40090
+ Args: {
40091
+ _error?: string;
40092
+ _fulfillment_order_id?: string;
40093
+ _id: string;
40094
+ _max_age_hours?: number;
40095
+ _max_attempts?: number;
40096
+ _ok: boolean;
40097
+ _permanent?: boolean;
40098
+ _revision: number;
40099
+ _sent_hash?: string;
40100
+ };
40101
+ Returns: string;
40102
+ };
40103
+ logistics_floriday_prune_pushes: {
40104
+ Args: {
40105
+ _days?: number;
40106
+ };
40107
+ Returns: number;
40108
+ };
40109
+ logistics_floriday_queue_push: {
40110
+ Args: {
40111
+ _order_ref: string;
40112
+ _payload?: import("../integrations/supabase/types").Json;
40113
+ _payload_hash?: string;
40114
+ };
40115
+ Returns: string;
40116
+ };
39417
40117
  logistics_live_carriers: {
39418
40118
  Args: {
39419
40119
  p_order_ref: string;
@@ -39761,6 +40461,15 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
39761
40461
  };
39762
40462
  Returns: string;
39763
40463
  };
40464
+ pick_active_printers: {
40465
+ Args: never;
40466
+ Returns: {
40467
+ id: string;
40468
+ locatie: string;
40469
+ naam: string;
40470
+ online: boolean;
40471
+ }[];
40472
+ };
39764
40473
  pick_claim_document: {
39765
40474
  Args: {
39766
40475
  _queue_item_id: string;
@@ -39947,6 +40656,52 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
39947
40656
  };
39948
40657
  Returns: undefined;
39949
40658
  };
40659
+ pick_reset_print: {
40660
+ Args: {
40661
+ _queue_item_id: string;
40662
+ _session_id: string;
40663
+ };
40664
+ Returns: {
40665
+ announced_at: string;
40666
+ assigned_user_id: string | null;
40667
+ barcode: string | null;
40668
+ cancelled_at: string | null;
40669
+ cart_count: number;
40670
+ completed_at: string | null;
40671
+ country_code: string | null;
40672
+ created_at: string;
40673
+ customer_name: string | null;
40674
+ delivery_address: string | null;
40675
+ document_number: string | null;
40676
+ document_type_id: string | null;
40677
+ due_at: string | null;
40678
+ id: string;
40679
+ is_urgent: boolean;
40680
+ line_count: number;
40681
+ order_number: string | null;
40682
+ order_type: string | null;
40683
+ payload: import("../integrations/supabase/types").Json;
40684
+ print_count: number;
40685
+ print_job_id: string | null;
40686
+ printed_at: string | null;
40687
+ printed_by: string | null;
40688
+ printer_id: string | null;
40689
+ priority: number;
40690
+ reference: string | null;
40691
+ route: string | null;
40692
+ screen_id: string | null;
40693
+ station_id: string | null;
40694
+ status_id: string | null;
40695
+ updated_at: string;
40696
+ warnings: import("../integrations/supabase/types").Json;
40697
+ };
40698
+ SetofOptions: {
40699
+ from: "*";
40700
+ to: "pick_queue";
40701
+ isOneToOne: true;
40702
+ isSetofReturn: false;
40703
+ };
40704
+ };
39950
40705
  pick_station_dashboard: {
39951
40706
  Args: never;
39952
40707
  Returns: {
@@ -40137,10 +40892,20 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
40137
40892
  };
40138
40893
  Returns: import("../integrations/supabase/types").Json;
40139
40894
  };
40895
+ ruim_print_jobs_op: {
40896
+ Args: {
40897
+ _bewaar_dagen?: number;
40898
+ };
40899
+ Returns: number;
40900
+ };
40140
40901
  run_floriday_continuous_stock_sync: {
40141
40902
  Args: never;
40142
40903
  Returns: undefined;
40143
40904
  };
40905
+ run_logistics_tasks_dispatch: {
40906
+ Args: never;
40907
+ Returns: undefined;
40908
+ };
40144
40909
  run_twinfield_queue_tick: {
40145
40910
  Args: never;
40146
40911
  Returns: undefined;
@@ -40381,6 +41146,13 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
40381
41146
  };
40382
41147
  Returns: number;
40383
41148
  };
41149
+ schedule_floriday_stock_queue_process: {
41150
+ Args: {
41151
+ p_apikey: string;
41152
+ p_url: string;
41153
+ };
41154
+ Returns: number;
41155
+ };
40384
41156
  schedule_floriday_token_refresh: {
40385
41157
  Args: {
40386
41158
  p_apikey: string;
@@ -40570,7 +41342,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
40570
41342
  };
40571
41343
  Enums: {
40572
41344
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40573
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
41345
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40574
41346
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40575
41347
  doc_orientation: "portrait" | "landscape";
40576
41348
  exact_env: "staging" | "live";
@@ -46320,12 +47092,17 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
46320
47092
  attempts: number;
46321
47093
  connection_id: string;
46322
47094
  created_at: string;
47095
+ desired_available: boolean | null;
46323
47096
  gateway_attempt_id: string | null;
46324
47097
  id: string;
46325
47098
  last_error: string | null;
47099
+ locked_at: string | null;
47100
+ locked_by: string | null;
47101
+ next_attempt_at: string;
46326
47102
  number_of_pieces: number;
46327
47103
  sent_at: string | null;
46328
47104
  status: string;
47105
+ superseded_by: string | null;
46329
47106
  trade_item_id: string;
46330
47107
  updated_at: string;
46331
47108
  user_id: string;
@@ -46334,12 +47111,17 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
46334
47111
  attempts?: number;
46335
47112
  connection_id: string;
46336
47113
  created_at?: string;
47114
+ desired_available?: boolean | null;
46337
47115
  gateway_attempt_id?: string | null;
46338
47116
  id?: string;
46339
47117
  last_error?: string | null;
47118
+ locked_at?: string | null;
47119
+ locked_by?: string | null;
47120
+ next_attempt_at?: string;
46340
47121
  number_of_pieces?: number;
46341
47122
  sent_at?: string | null;
46342
47123
  status?: string;
47124
+ superseded_by?: string | null;
46343
47125
  trade_item_id: string;
46344
47126
  updated_at?: string;
46345
47127
  user_id: string;
@@ -46348,12 +47130,17 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
46348
47130
  attempts?: number;
46349
47131
  connection_id?: string;
46350
47132
  created_at?: string;
47133
+ desired_available?: boolean | null;
46351
47134
  gateway_attempt_id?: string | null;
46352
47135
  id?: string;
46353
47136
  last_error?: string | null;
47137
+ locked_at?: string | null;
47138
+ locked_by?: string | null;
47139
+ next_attempt_at?: string;
46354
47140
  number_of_pieces?: number;
46355
47141
  sent_at?: string | null;
46356
47142
  status?: string;
47143
+ superseded_by?: string | null;
46357
47144
  trade_item_id?: string;
46358
47145
  updated_at?: string;
46359
47146
  user_id?: string;
@@ -49102,6 +49889,69 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
49102
49889
  };
49103
49890
  Relationships: [];
49104
49891
  };
49892
+ logistics_floriday_pushes: {
49893
+ Row: {
49894
+ attempts: number;
49895
+ created_at: string;
49896
+ first_queued_at: string;
49897
+ fulfillment_order_id: string | null;
49898
+ id: string;
49899
+ last_error: string | null;
49900
+ last_error_at: string | null;
49901
+ last_sent_hash: string | null;
49902
+ locked_by: string | null;
49903
+ locked_until: string | null;
49904
+ next_attempt_at: string;
49905
+ order_ref: string;
49906
+ payload: import("../integrations/supabase/types").Json;
49907
+ payload_hash: string | null;
49908
+ revision: number;
49909
+ sent_at: string | null;
49910
+ status: string;
49911
+ updated_at: string;
49912
+ };
49913
+ Insert: {
49914
+ attempts?: number;
49915
+ created_at?: string;
49916
+ first_queued_at?: string;
49917
+ fulfillment_order_id?: string | null;
49918
+ id?: string;
49919
+ last_error?: string | null;
49920
+ last_error_at?: string | null;
49921
+ last_sent_hash?: string | null;
49922
+ locked_by?: string | null;
49923
+ locked_until?: string | null;
49924
+ next_attempt_at?: string;
49925
+ order_ref: string;
49926
+ payload?: import("../integrations/supabase/types").Json;
49927
+ payload_hash?: string | null;
49928
+ revision?: number;
49929
+ sent_at?: string | null;
49930
+ status?: string;
49931
+ updated_at?: string;
49932
+ };
49933
+ Update: {
49934
+ attempts?: number;
49935
+ created_at?: string;
49936
+ first_queued_at?: string;
49937
+ fulfillment_order_id?: string | null;
49938
+ id?: string;
49939
+ last_error?: string | null;
49940
+ last_error_at?: string | null;
49941
+ last_sent_hash?: string | null;
49942
+ locked_by?: string | null;
49943
+ locked_until?: string | null;
49944
+ next_attempt_at?: string;
49945
+ order_ref?: string;
49946
+ payload?: import("../integrations/supabase/types").Json;
49947
+ payload_hash?: string | null;
49948
+ revision?: number;
49949
+ sent_at?: string | null;
49950
+ status?: string;
49951
+ updated_at?: string;
49952
+ };
49953
+ Relationships: [];
49954
+ };
49105
49955
  logistics_formulas: {
49106
49956
  Row: {
49107
49957
  created_at: string;
@@ -49713,6 +50563,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
49713
50563
  };
49714
50564
  logistics_tasks: {
49715
50565
  Row: {
50566
+ attempt_log: import("../integrations/supabase/types").Json;
50567
+ attempts: number;
49716
50568
  buffer_ref: string | null;
49717
50569
  claimed_at: string | null;
49718
50570
  claimed_by: string | null;
@@ -49722,6 +50574,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
49722
50574
  due_at: string | null;
49723
50575
  error: string | null;
49724
50576
  id: string;
50577
+ last_error: string | null;
50578
+ next_attempt_at: string | null;
49725
50579
  order_ref: string;
49726
50580
  owner_module: string;
49727
50581
  payload: import("../integrations/supabase/types").Json;
@@ -49742,6 +50596,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
49742
50596
  user_id: string;
49743
50597
  };
49744
50598
  Insert: {
50599
+ attempt_log?: import("../integrations/supabase/types").Json;
50600
+ attempts?: number;
49745
50601
  buffer_ref?: string | null;
49746
50602
  claimed_at?: string | null;
49747
50603
  claimed_by?: string | null;
@@ -49751,6 +50607,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
49751
50607
  due_at?: string | null;
49752
50608
  error?: string | null;
49753
50609
  id?: string;
50610
+ last_error?: string | null;
50611
+ next_attempt_at?: string | null;
49754
50612
  order_ref: string;
49755
50613
  owner_module: string;
49756
50614
  payload?: import("../integrations/supabase/types").Json;
@@ -49771,6 +50629,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
49771
50629
  user_id?: string;
49772
50630
  };
49773
50631
  Update: {
50632
+ attempt_log?: import("../integrations/supabase/types").Json;
50633
+ attempts?: number;
49774
50634
  buffer_ref?: string | null;
49775
50635
  claimed_at?: string | null;
49776
50636
  claimed_by?: string | null;
@@ -49780,6 +50640,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
49780
50640
  due_at?: string | null;
49781
50641
  error?: string | null;
49782
50642
  id?: string;
50643
+ last_error?: string | null;
50644
+ next_attempt_at?: string | null;
49783
50645
  order_ref?: string;
49784
50646
  owner_module?: string;
49785
50647
  payload?: import("../integrations/supabase/types").Json;
@@ -51129,6 +51991,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
51129
51991
  };
51130
51992
  offer_settings: {
51131
51993
  Row: {
51994
+ brand_name: string | null;
51132
51995
  button_color: string;
51133
51996
  created_at: string;
51134
51997
  default_countries: string[];
@@ -51150,6 +52013,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
51150
52013
  updated_at: string;
51151
52014
  };
51152
52015
  Insert: {
52016
+ brand_name?: string | null;
51153
52017
  button_color?: string;
51154
52018
  created_at?: string;
51155
52019
  default_countries?: string[];
@@ -51171,6 +52035,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
51171
52035
  updated_at?: string;
51172
52036
  };
51173
52037
  Update: {
52038
+ brand_name?: string | null;
51174
52039
  button_color?: string;
51175
52040
  created_at?: string;
51176
52041
  default_countries?: string[];
@@ -52889,22 +53754,27 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
52889
53754
  created_at: string;
52890
53755
  documentnaam: string;
52891
53756
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
53757
+ extern_job_id: string | null;
52892
53758
  foutmelding: string | null;
52893
53759
  gebruiker_id: string | null;
52894
53760
  gebruiker_naam: string;
52895
53761
  gestart_op: string | null;
52896
53762
  id: string;
53763
+ idempotentie_sleutel: string | null;
52897
53764
  is_herprint: boolean;
52898
53765
  kopieen: number;
52899
53766
  layout_id: string | null;
52900
53767
  opgepakt_op: string | null;
52901
53768
  paginas: number;
52902
53769
  payload: import("../integrations/supabase/types").Json;
53770
+ pdf_base64: string | null;
53771
+ pdf_url: string | null;
52903
53772
  pogingen: number;
52904
53773
  printer_id: string | null;
52905
53774
  render_html: string | null;
52906
53775
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
52907
53776
  updated_at: string;
53777
+ volgende_poging: string | null;
52908
53778
  voltooid_op: string | null;
52909
53779
  };
52910
53780
  Insert: {
@@ -52913,22 +53783,27 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
52913
53783
  created_at?: string;
52914
53784
  documentnaam?: string;
52915
53785
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
53786
+ extern_job_id?: string | null;
52916
53787
  foutmelding?: string | null;
52917
53788
  gebruiker_id?: string | null;
52918
53789
  gebruiker_naam?: string;
52919
53790
  gestart_op?: string | null;
52920
53791
  id?: string;
53792
+ idempotentie_sleutel?: string | null;
52921
53793
  is_herprint?: boolean;
52922
53794
  kopieen?: number;
52923
53795
  layout_id?: string | null;
52924
53796
  opgepakt_op?: string | null;
52925
53797
  paginas?: number;
52926
53798
  payload?: import("../integrations/supabase/types").Json;
53799
+ pdf_base64?: string | null;
53800
+ pdf_url?: string | null;
52927
53801
  pogingen?: number;
52928
53802
  printer_id?: string | null;
52929
53803
  render_html?: string | null;
52930
53804
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
52931
53805
  updated_at?: string;
53806
+ volgende_poging?: string | null;
52932
53807
  voltooid_op?: string | null;
52933
53808
  };
52934
53809
  Update: {
@@ -52937,22 +53812,27 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
52937
53812
  created_at?: string;
52938
53813
  documentnaam?: string;
52939
53814
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
53815
+ extern_job_id?: string | null;
52940
53816
  foutmelding?: string | null;
52941
53817
  gebruiker_id?: string | null;
52942
53818
  gebruiker_naam?: string;
52943
53819
  gestart_op?: string | null;
52944
53820
  id?: string;
53821
+ idempotentie_sleutel?: string | null;
52945
53822
  is_herprint?: boolean;
52946
53823
  kopieen?: number;
52947
53824
  layout_id?: string | null;
52948
53825
  opgepakt_op?: string | null;
52949
53826
  paginas?: number;
52950
53827
  payload?: import("../integrations/supabase/types").Json;
53828
+ pdf_base64?: string | null;
53829
+ pdf_url?: string | null;
52951
53830
  pogingen?: number;
52952
53831
  printer_id?: string | null;
52953
53832
  render_html?: string | null;
52954
53833
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
52955
53834
  updated_at?: string;
53835
+ volgende_poging?: string | null;
52956
53836
  voltooid_op?: string | null;
52957
53837
  };
52958
53838
  Relationships: [{
@@ -53135,6 +54015,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
53135
54015
  agent_id: string | null;
53136
54016
  created_at: string;
53137
54017
  driver: string;
54018
+ extern_printer_id: string | null;
53138
54019
  id: string;
53139
54020
  ip_adres: string | null;
53140
54021
  laatst_gezien: string | null;
@@ -53156,6 +54037,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
53156
54037
  agent_id?: string | null;
53157
54038
  created_at?: string;
53158
54039
  driver?: string;
54040
+ extern_printer_id?: string | null;
53159
54041
  id?: string;
53160
54042
  ip_adres?: string | null;
53161
54043
  laatst_gezien?: string | null;
@@ -53177,6 +54059,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
53177
54059
  agent_id?: string | null;
53178
54060
  created_at?: string;
53179
54061
  driver?: string;
54062
+ extern_printer_id?: string | null;
53180
54063
  id?: string;
53181
54064
  ip_adres?: string | null;
53182
54065
  laatst_gezien?: string | null;
@@ -58781,6 +59664,125 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
58781
59664
  };
58782
59665
  Returns: import("../integrations/supabase/types").Json;
58783
59666
  };
59667
+ claim_cloud_print_jobs: {
59668
+ Args: {
59669
+ _max?: number;
59670
+ };
59671
+ Returns: {
59672
+ agent_id: string | null;
59673
+ bron_job_id: string | null;
59674
+ created_at: string;
59675
+ documentnaam: string;
59676
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
59677
+ extern_job_id: string | null;
59678
+ foutmelding: string | null;
59679
+ gebruiker_id: string | null;
59680
+ gebruiker_naam: string;
59681
+ gestart_op: string | null;
59682
+ id: string;
59683
+ idempotentie_sleutel: string | null;
59684
+ is_herprint: boolean;
59685
+ kopieen: number;
59686
+ layout_id: string | null;
59687
+ opgepakt_op: string | null;
59688
+ paginas: number;
59689
+ payload: import("../integrations/supabase/types").Json;
59690
+ pdf_base64: string | null;
59691
+ pdf_url: string | null;
59692
+ pogingen: number;
59693
+ printer_id: string | null;
59694
+ render_html: string | null;
59695
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59696
+ updated_at: string;
59697
+ volgende_poging: string | null;
59698
+ voltooid_op: string | null;
59699
+ }[];
59700
+ SetofOptions: {
59701
+ from: "*";
59702
+ to: "print_jobs";
59703
+ isOneToOne: false;
59704
+ isSetofReturn: true;
59705
+ };
59706
+ };
59707
+ claim_floriday_stock_queue: {
59708
+ Args: {
59709
+ p_limit?: number;
59710
+ p_worker?: string;
59711
+ };
59712
+ Returns: {
59713
+ attempts: number;
59714
+ connection_id: string;
59715
+ created_at: string;
59716
+ desired_available: boolean | null;
59717
+ gateway_attempt_id: string | null;
59718
+ id: string;
59719
+ last_error: string | null;
59720
+ locked_at: string | null;
59721
+ locked_by: string | null;
59722
+ next_attempt_at: string;
59723
+ number_of_pieces: number;
59724
+ sent_at: string | null;
59725
+ status: string;
59726
+ superseded_by: string | null;
59727
+ trade_item_id: string;
59728
+ updated_at: string;
59729
+ user_id: string;
59730
+ }[];
59731
+ SetofOptions: {
59732
+ from: "*";
59733
+ to: "floriday_continuous_stock_queue";
59734
+ isOneToOne: false;
59735
+ isSetofReturn: true;
59736
+ };
59737
+ };
59738
+ claim_logistics_tasks: {
59739
+ Args: {
59740
+ _limit?: number;
59741
+ _owner_module: string;
59742
+ _stale_minutes?: number;
59743
+ _task_type: string;
59744
+ _worker: string;
59745
+ };
59746
+ Returns: {
59747
+ attempt_log: import("../integrations/supabase/types").Json;
59748
+ attempts: number;
59749
+ buffer_ref: string | null;
59750
+ claimed_at: string | null;
59751
+ claimed_by: string | null;
59752
+ completed_at: string | null;
59753
+ created_at: string;
59754
+ depends_on: string[];
59755
+ due_at: string | null;
59756
+ error: string | null;
59757
+ id: string;
59758
+ last_error: string | null;
59759
+ next_attempt_at: string | null;
59760
+ order_ref: string;
59761
+ owner_module: string;
59762
+ payload: import("../integrations/supabase/types").Json;
59763
+ plan_run_id: string | null;
59764
+ planned_end: string | null;
59765
+ planned_start: string | null;
59766
+ priority: number;
59767
+ result: import("../integrations/supabase/types").Json | null;
59768
+ rule_config_id: string | null;
59769
+ rule_version: number | null;
59770
+ sequence: number;
59771
+ shadow: boolean;
59772
+ started_at: string | null;
59773
+ status: string;
59774
+ strategy_id: string | null;
59775
+ task_type: string;
59776
+ updated_at: string;
59777
+ user_id: string;
59778
+ }[];
59779
+ SetofOptions: {
59780
+ from: "*";
59781
+ to: "logistics_tasks";
59782
+ isOneToOne: false;
59783
+ isSetofReturn: true;
59784
+ };
59785
+ };
58784
59786
  claim_print_jobs: {
58785
59787
  Args: {
58786
59788
  _agent_id: string;
@@ -58792,22 +59794,27 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
58792
59794
  created_at: string;
58793
59795
  documentnaam: string;
58794
59796
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
59797
+ extern_job_id: string | null;
58795
59798
  foutmelding: string | null;
58796
59799
  gebruiker_id: string | null;
58797
59800
  gebruiker_naam: string;
58798
59801
  gestart_op: string | null;
58799
59802
  id: string;
59803
+ idempotentie_sleutel: string | null;
58800
59804
  is_herprint: boolean;
58801
59805
  kopieen: number;
58802
59806
  layout_id: string | null;
58803
59807
  opgepakt_op: string | null;
58804
59808
  paginas: number;
58805
59809
  payload: import("../integrations/supabase/types").Json;
59810
+ pdf_base64: string | null;
59811
+ pdf_url: string | null;
58806
59812
  pogingen: number;
58807
59813
  printer_id: string | null;
58808
59814
  render_html: string | null;
58809
59815
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
58810
59816
  updated_at: string;
59817
+ volgende_poging: string | null;
58811
59818
  voltooid_op: string | null;
58812
59819
  }[];
58813
59820
  SetofOptions: {
@@ -58845,10 +59852,24 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
58845
59852
  isSetofReturn: true;
58846
59853
  };
58847
59854
  };
59855
+ cleanup_floriday_stock_queue: {
59856
+ Args: never;
59857
+ Returns: undefined;
59858
+ };
58848
59859
  cleanup_old_bookings: {
58849
59860
  Args: never;
58850
59861
  Returns: undefined;
58851
59862
  };
59863
+ complete_floriday_stock_queue: {
59864
+ Args: {
59865
+ p_attempt_id?: string;
59866
+ p_error?: string;
59867
+ p_id: string;
59868
+ p_ok: boolean;
59869
+ p_permanent?: boolean;
59870
+ };
59871
+ Returns: undefined;
59872
+ };
58852
59873
  consume_bom_for_production: {
58853
59874
  Args: {
58854
59875
  p_connection_id: string;
@@ -59245,6 +60266,10 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59245
60266
  };
59246
60267
  Returns: number;
59247
60268
  };
60269
+ get_offer_branding: {
60270
+ Args: never;
60271
+ Returns: import("../integrations/supabase/types").Json;
60272
+ };
59248
60273
  get_offer_by_link_code: {
59249
60274
  Args: {
59250
60275
  p_code: string;
@@ -59536,6 +60561,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59536
60561
  p_worker?: string;
59537
60562
  };
59538
60563
  Returns: {
60564
+ attempt_log: import("../integrations/supabase/types").Json;
60565
+ attempts: number;
59539
60566
  buffer_ref: string | null;
59540
60567
  claimed_at: string | null;
59541
60568
  claimed_by: string | null;
@@ -59545,6 +60572,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59545
60572
  due_at: string | null;
59546
60573
  error: string | null;
59547
60574
  id: string;
60575
+ last_error: string | null;
60576
+ next_attempt_at: string | null;
59548
60577
  order_ref: string;
59549
60578
  owner_module: string;
59550
60579
  payload: import("../integrations/supabase/types").Json;
@@ -59577,6 +60606,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59577
60606
  p_worker?: string;
59578
60607
  };
59579
60608
  Returns: {
60609
+ attempt_log: import("../integrations/supabase/types").Json;
60610
+ attempts: number;
59580
60611
  buffer_ref: string | null;
59581
60612
  claimed_at: string | null;
59582
60613
  claimed_by: string | null;
@@ -59586,6 +60617,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59586
60617
  due_at: string | null;
59587
60618
  error: string | null;
59588
60619
  id: string;
60620
+ last_error: string | null;
60621
+ next_attempt_at: string | null;
59589
60622
  order_ref: string;
59590
60623
  owner_module: string;
59591
60624
  payload: import("../integrations/supabase/types").Json;
@@ -59618,6 +60651,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59618
60651
  p_task_id: string;
59619
60652
  };
59620
60653
  Returns: {
60654
+ attempt_log: import("../integrations/supabase/types").Json;
60655
+ attempts: number;
59621
60656
  buffer_ref: string | null;
59622
60657
  claimed_at: string | null;
59623
60658
  claimed_by: string | null;
@@ -59627,6 +60662,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59627
60662
  due_at: string | null;
59628
60663
  error: string | null;
59629
60664
  id: string;
60665
+ last_error: string | null;
60666
+ next_attempt_at: string | null;
59630
60667
  order_ref: string;
59631
60668
  owner_module: string;
59632
60669
  payload: import("../integrations/supabase/types").Json;
@@ -59708,6 +60745,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59708
60745
  p_task_id: string;
59709
60746
  };
59710
60747
  Returns: {
60748
+ attempt_log: import("../integrations/supabase/types").Json;
60749
+ attempts: number;
59711
60750
  buffer_ref: string | null;
59712
60751
  claimed_at: string | null;
59713
60752
  claimed_by: string | null;
@@ -59717,6 +60756,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59717
60756
  due_at: string | null;
59718
60757
  error: string | null;
59719
60758
  id: string;
60759
+ last_error: string | null;
60760
+ next_attempt_at: string | null;
59720
60761
  order_ref: string;
59721
60762
  owner_module: string;
59722
60763
  payload: import("../integrations/supabase/types").Json;
@@ -59743,6 +60784,51 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59743
60784
  isSetofReturn: false;
59744
60785
  };
59745
60786
  };
60787
+ logistics_floriday_claim_pushes: {
60788
+ Args: {
60789
+ _lease_seconds?: number;
60790
+ _limit?: number;
60791
+ _worker?: string;
60792
+ };
60793
+ Returns: {
60794
+ attempts: number;
60795
+ fulfillment_order_id: string;
60796
+ id: string;
60797
+ last_sent_hash: string;
60798
+ order_ref: string;
60799
+ payload: import("../integrations/supabase/types").Json;
60800
+ payload_hash: string;
60801
+ revision: number;
60802
+ }[];
60803
+ };
60804
+ logistics_floriday_finish_push: {
60805
+ Args: {
60806
+ _error?: string;
60807
+ _fulfillment_order_id?: string;
60808
+ _id: string;
60809
+ _max_age_hours?: number;
60810
+ _max_attempts?: number;
60811
+ _ok: boolean;
60812
+ _permanent?: boolean;
60813
+ _revision: number;
60814
+ _sent_hash?: string;
60815
+ };
60816
+ Returns: string;
60817
+ };
60818
+ logistics_floriday_prune_pushes: {
60819
+ Args: {
60820
+ _days?: number;
60821
+ };
60822
+ Returns: number;
60823
+ };
60824
+ logistics_floriday_queue_push: {
60825
+ Args: {
60826
+ _order_ref: string;
60827
+ _payload?: import("../integrations/supabase/types").Json;
60828
+ _payload_hash?: string;
60829
+ };
60830
+ Returns: string;
60831
+ };
59746
60832
  logistics_live_carriers: {
59747
60833
  Args: {
59748
60834
  p_order_ref: string;
@@ -60090,6 +61176,15 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
60090
61176
  };
60091
61177
  Returns: string;
60092
61178
  };
61179
+ pick_active_printers: {
61180
+ Args: never;
61181
+ Returns: {
61182
+ id: string;
61183
+ locatie: string;
61184
+ naam: string;
61185
+ online: boolean;
61186
+ }[];
61187
+ };
60093
61188
  pick_claim_document: {
60094
61189
  Args: {
60095
61190
  _queue_item_id: string;
@@ -60276,6 +61371,52 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
60276
61371
  };
60277
61372
  Returns: undefined;
60278
61373
  };
61374
+ pick_reset_print: {
61375
+ Args: {
61376
+ _queue_item_id: string;
61377
+ _session_id: string;
61378
+ };
61379
+ Returns: {
61380
+ announced_at: string;
61381
+ assigned_user_id: string | null;
61382
+ barcode: string | null;
61383
+ cancelled_at: string | null;
61384
+ cart_count: number;
61385
+ completed_at: string | null;
61386
+ country_code: string | null;
61387
+ created_at: string;
61388
+ customer_name: string | null;
61389
+ delivery_address: string | null;
61390
+ document_number: string | null;
61391
+ document_type_id: string | null;
61392
+ due_at: string | null;
61393
+ id: string;
61394
+ is_urgent: boolean;
61395
+ line_count: number;
61396
+ order_number: string | null;
61397
+ order_type: string | null;
61398
+ payload: import("../integrations/supabase/types").Json;
61399
+ print_count: number;
61400
+ print_job_id: string | null;
61401
+ printed_at: string | null;
61402
+ printed_by: string | null;
61403
+ printer_id: string | null;
61404
+ priority: number;
61405
+ reference: string | null;
61406
+ route: string | null;
61407
+ screen_id: string | null;
61408
+ station_id: string | null;
61409
+ status_id: string | null;
61410
+ updated_at: string;
61411
+ warnings: import("../integrations/supabase/types").Json;
61412
+ };
61413
+ SetofOptions: {
61414
+ from: "*";
61415
+ to: "pick_queue";
61416
+ isOneToOne: true;
61417
+ isSetofReturn: false;
61418
+ };
61419
+ };
60279
61420
  pick_station_dashboard: {
60280
61421
  Args: never;
60281
61422
  Returns: {
@@ -60466,10 +61607,20 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
60466
61607
  };
60467
61608
  Returns: import("../integrations/supabase/types").Json;
60468
61609
  };
61610
+ ruim_print_jobs_op: {
61611
+ Args: {
61612
+ _bewaar_dagen?: number;
61613
+ };
61614
+ Returns: number;
61615
+ };
60469
61616
  run_floriday_continuous_stock_sync: {
60470
61617
  Args: never;
60471
61618
  Returns: undefined;
60472
61619
  };
61620
+ run_logistics_tasks_dispatch: {
61621
+ Args: never;
61622
+ Returns: undefined;
61623
+ };
60473
61624
  run_twinfield_queue_tick: {
60474
61625
  Args: never;
60475
61626
  Returns: undefined;
@@ -60710,6 +61861,13 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
60710
61861
  };
60711
61862
  Returns: number;
60712
61863
  };
61864
+ schedule_floriday_stock_queue_process: {
61865
+ Args: {
61866
+ p_apikey: string;
61867
+ p_url: string;
61868
+ };
61869
+ Returns: number;
61870
+ };
60713
61871
  schedule_floriday_token_refresh: {
60714
61872
  Args: {
60715
61873
  p_apikey: string;
@@ -60899,7 +62057,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
60899
62057
  };
60900
62058
  Enums: {
60901
62059
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
60902
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
62060
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
60903
62061
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
60904
62062
  doc_orientation: "portrait" | "landscape";
60905
62063
  exact_env: "staging" | "live";