@flowselections/logistiek-engine 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/FloridayPushCard.d.ts +2 -0
  3. package/dist-lib/components/FloridayPushCard.d.ts.map +1 -0
  4. package/dist-lib/components/FloridayPushCard.js +32 -0
  5. package/dist-lib/components/PrintjobsCard.d.ts +2 -0
  6. package/dist-lib/components/PrintjobsCard.d.ts.map +1 -0
  7. package/dist-lib/components/PrintjobsCard.js +35 -0
  8. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  9. package/dist-lib/components/RegiePage.js +3 -1
  10. package/dist-lib/hooks/useFloridayPushes.d.ts +20 -0
  11. package/dist-lib/hooks/useFloridayPushes.d.ts.map +1 -0
  12. package/dist-lib/hooks/useFloridayPushes.js +55 -0
  13. package/dist-lib/hooks/usePrintjobs.d.ts +19 -0
  14. package/dist-lib/hooks/usePrintjobs.d.ts.map +1 -0
  15. package/dist-lib/hooks/usePrintjobs.js +60 -0
  16. package/dist-lib/index.d.ts +3 -0
  17. package/dist-lib/index.d.ts.map +1 -1
  18. package/dist-lib/index.js +3 -0
  19. package/dist-lib/integrations/supabase/auth-middleware.d.ts +387 -1
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/client.d.ts +387 -1
  22. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts +387 -1
  24. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/types.d.ts +388 -2
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/types.js +12 -1
  28. package/dist-lib/lib/bulkLoadCarrierPlanning.server.d.ts +4 -3
  29. package/dist-lib/lib/bulkLoadCarrierPlanning.server.d.ts.map +1 -1
  30. package/dist-lib/lib/bulkLoadCarrierPlanning.server.js +13 -15
  31. package/dist-lib/lib/floridayDocuments.functions.d.ts +1161 -3
  32. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floridayPush.functions.d.ts +20689 -0
  34. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -0
  35. package/dist-lib/lib/floridayPush.functions.js +20 -0
  36. package/dist-lib/lib/floridayPush.server.d.ts +45 -0
  37. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -0
  38. package/dist-lib/lib/floridayPush.server.js +219 -0
  39. package/dist-lib/lib/handlers/logistics-tick.server.d.ts +2 -1
  40. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  41. package/dist-lib/lib/handlers/logistics-tick.server.js +14 -2
  42. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1935 -5
  43. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/loadCarrierPlanning.functions.js +13 -8
  45. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +7 -6
  46. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  47. package/dist-lib/lib/loadCarrierPlanning.server.js +31 -33
  48. package/dist-lib/lib/loadCarrierTaskSync.server.d.ts +2 -1
  49. package/dist-lib/lib/loadCarrierTaskSync.server.d.ts.map +1 -1
  50. package/dist-lib/lib/loadCarrierTaskSync.server.js +13 -6
  51. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +774 -2
  52. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/logisticsRecalcJob.functions.js +4 -2
  54. package/dist-lib/lib/logisticsRecalcJob.server.d.ts +6 -5
  55. package/dist-lib/lib/logisticsRecalcJob.server.d.ts.map +1 -1
  56. package/dist-lib/lib/logisticsRecalcJob.server.js +17 -19
  57. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +387 -1
  58. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  59. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  60. package/dist-lib/lib/modulePrompts.js +949 -911
  61. package/package.json +2 -2
@@ -5694,12 +5694,17 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5694
5694
  attempts: number;
5695
5695
  connection_id: string;
5696
5696
  created_at: string;
5697
+ desired_available: boolean | null;
5697
5698
  gateway_attempt_id: string | null;
5698
5699
  id: string;
5699
5700
  last_error: string | null;
5701
+ locked_at: string | null;
5702
+ locked_by: string | null;
5703
+ next_attempt_at: string;
5700
5704
  number_of_pieces: number;
5701
5705
  sent_at: string | null;
5702
5706
  status: string;
5707
+ superseded_by: string | null;
5703
5708
  trade_item_id: string;
5704
5709
  updated_at: string;
5705
5710
  user_id: string;
@@ -5708,12 +5713,17 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5708
5713
  attempts?: number;
5709
5714
  connection_id: string;
5710
5715
  created_at?: string;
5716
+ desired_available?: boolean | null;
5711
5717
  gateway_attempt_id?: string | null;
5712
5718
  id?: string;
5713
5719
  last_error?: string | null;
5720
+ locked_at?: string | null;
5721
+ locked_by?: string | null;
5722
+ next_attempt_at?: string;
5714
5723
  number_of_pieces?: number;
5715
5724
  sent_at?: string | null;
5716
5725
  status?: string;
5726
+ superseded_by?: string | null;
5717
5727
  trade_item_id: string;
5718
5728
  updated_at?: string;
5719
5729
  user_id: string;
@@ -5722,12 +5732,17 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5722
5732
  attempts?: number;
5723
5733
  connection_id?: string;
5724
5734
  created_at?: string;
5735
+ desired_available?: boolean | null;
5725
5736
  gateway_attempt_id?: string | null;
5726
5737
  id?: string;
5727
5738
  last_error?: string | null;
5739
+ locked_at?: string | null;
5740
+ locked_by?: string | null;
5741
+ next_attempt_at?: string;
5728
5742
  number_of_pieces?: number;
5729
5743
  sent_at?: string | null;
5730
5744
  status?: string;
5745
+ superseded_by?: string | null;
5731
5746
  trade_item_id?: string;
5732
5747
  updated_at?: string;
5733
5748
  user_id?: string;
@@ -8476,6 +8491,69 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8476
8491
  };
8477
8492
  Relationships: [];
8478
8493
  };
8494
+ logistics_floriday_pushes: {
8495
+ Row: {
8496
+ attempts: number;
8497
+ created_at: string;
8498
+ first_queued_at: string;
8499
+ fulfillment_order_id: string | null;
8500
+ id: string;
8501
+ last_error: string | null;
8502
+ last_error_at: string | null;
8503
+ last_sent_hash: string | null;
8504
+ locked_by: string | null;
8505
+ locked_until: string | null;
8506
+ next_attempt_at: string;
8507
+ order_ref: string;
8508
+ payload: import("./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("./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("./types").Json;
8549
+ payload_hash?: string | null;
8550
+ revision?: number;
8551
+ sent_at?: string | null;
8552
+ status?: string;
8553
+ updated_at?: string;
8554
+ };
8555
+ Relationships: [];
8556
+ };
8479
8557
  logistics_formulas: {
8480
8558
  Row: {
8481
8559
  created_at: string;
@@ -9087,6 +9165,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9087
9165
  };
9088
9166
  logistics_tasks: {
9089
9167
  Row: {
9168
+ attempt_log: import("./types").Json;
9169
+ attempts: number;
9090
9170
  buffer_ref: string | null;
9091
9171
  claimed_at: string | null;
9092
9172
  claimed_by: string | null;
@@ -9096,6 +9176,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9096
9176
  due_at: string | null;
9097
9177
  error: string | null;
9098
9178
  id: string;
9179
+ last_error: string | null;
9180
+ next_attempt_at: string | null;
9099
9181
  order_ref: string;
9100
9182
  owner_module: string;
9101
9183
  payload: import("./types").Json;
@@ -9116,6 +9198,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9116
9198
  user_id: string;
9117
9199
  };
9118
9200
  Insert: {
9201
+ attempt_log?: import("./types").Json;
9202
+ attempts?: number;
9119
9203
  buffer_ref?: string | null;
9120
9204
  claimed_at?: string | null;
9121
9205
  claimed_by?: string | null;
@@ -9125,6 +9209,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9125
9209
  due_at?: string | null;
9126
9210
  error?: string | null;
9127
9211
  id?: string;
9212
+ last_error?: string | null;
9213
+ next_attempt_at?: string | null;
9128
9214
  order_ref: string;
9129
9215
  owner_module: string;
9130
9216
  payload?: import("./types").Json;
@@ -9145,6 +9231,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9145
9231
  user_id?: string;
9146
9232
  };
9147
9233
  Update: {
9234
+ attempt_log?: import("./types").Json;
9235
+ attempts?: number;
9148
9236
  buffer_ref?: string | null;
9149
9237
  claimed_at?: string | null;
9150
9238
  claimed_by?: string | null;
@@ -9154,6 +9242,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9154
9242
  due_at?: string | null;
9155
9243
  error?: string | null;
9156
9244
  id?: string;
9245
+ last_error?: string | null;
9246
+ next_attempt_at?: string | null;
9157
9247
  order_ref?: string;
9158
9248
  owner_module?: string;
9159
9249
  payload?: import("./types").Json;
@@ -10503,6 +10593,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10503
10593
  };
10504
10594
  offer_settings: {
10505
10595
  Row: {
10596
+ brand_name: string | null;
10506
10597
  button_color: string;
10507
10598
  created_at: string;
10508
10599
  default_countries: string[];
@@ -10524,6 +10615,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10524
10615
  updated_at: string;
10525
10616
  };
10526
10617
  Insert: {
10618
+ brand_name?: string | null;
10527
10619
  button_color?: string;
10528
10620
  created_at?: string;
10529
10621
  default_countries?: string[];
@@ -10545,6 +10637,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10545
10637
  updated_at?: string;
10546
10638
  };
10547
10639
  Update: {
10640
+ brand_name?: string | null;
10548
10641
  button_color?: string;
10549
10642
  created_at?: string;
10550
10643
  default_countries?: string[];
@@ -12263,22 +12356,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12263
12356
  created_at: string;
12264
12357
  documentnaam: string;
12265
12358
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
12359
+ extern_job_id: string | null;
12266
12360
  foutmelding: string | null;
12267
12361
  gebruiker_id: string | null;
12268
12362
  gebruiker_naam: string;
12269
12363
  gestart_op: string | null;
12270
12364
  id: string;
12365
+ idempotentie_sleutel: string | null;
12271
12366
  is_herprint: boolean;
12272
12367
  kopieen: number;
12273
12368
  layout_id: string | null;
12274
12369
  opgepakt_op: string | null;
12275
12370
  paginas: number;
12276
12371
  payload: import("./types").Json;
12372
+ pdf_base64: string | null;
12373
+ pdf_url: string | null;
12277
12374
  pogingen: number;
12278
12375
  printer_id: string | null;
12279
12376
  render_html: string | null;
12280
12377
  status: Database["public"]["Enums"]["print_job_status"];
12281
12378
  updated_at: string;
12379
+ volgende_poging: string | null;
12282
12380
  voltooid_op: string | null;
12283
12381
  };
12284
12382
  Insert: {
@@ -12287,22 +12385,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12287
12385
  created_at?: string;
12288
12386
  documentnaam?: string;
12289
12387
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12388
+ extern_job_id?: string | null;
12290
12389
  foutmelding?: string | null;
12291
12390
  gebruiker_id?: string | null;
12292
12391
  gebruiker_naam?: string;
12293
12392
  gestart_op?: string | null;
12294
12393
  id?: string;
12394
+ idempotentie_sleutel?: string | null;
12295
12395
  is_herprint?: boolean;
12296
12396
  kopieen?: number;
12297
12397
  layout_id?: string | null;
12298
12398
  opgepakt_op?: string | null;
12299
12399
  paginas?: number;
12300
12400
  payload?: import("./types").Json;
12401
+ pdf_base64?: string | null;
12402
+ pdf_url?: string | null;
12301
12403
  pogingen?: number;
12302
12404
  printer_id?: string | null;
12303
12405
  render_html?: string | null;
12304
12406
  status?: Database["public"]["Enums"]["print_job_status"];
12305
12407
  updated_at?: string;
12408
+ volgende_poging?: string | null;
12306
12409
  voltooid_op?: string | null;
12307
12410
  };
12308
12411
  Update: {
@@ -12311,22 +12414,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12311
12414
  created_at?: string;
12312
12415
  documentnaam?: string;
12313
12416
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12417
+ extern_job_id?: string | null;
12314
12418
  foutmelding?: string | null;
12315
12419
  gebruiker_id?: string | null;
12316
12420
  gebruiker_naam?: string;
12317
12421
  gestart_op?: string | null;
12318
12422
  id?: string;
12423
+ idempotentie_sleutel?: string | null;
12319
12424
  is_herprint?: boolean;
12320
12425
  kopieen?: number;
12321
12426
  layout_id?: string | null;
12322
12427
  opgepakt_op?: string | null;
12323
12428
  paginas?: number;
12324
12429
  payload?: import("./types").Json;
12430
+ pdf_base64?: string | null;
12431
+ pdf_url?: string | null;
12325
12432
  pogingen?: number;
12326
12433
  printer_id?: string | null;
12327
12434
  render_html?: string | null;
12328
12435
  status?: Database["public"]["Enums"]["print_job_status"];
12329
12436
  updated_at?: string;
12437
+ volgende_poging?: string | null;
12330
12438
  voltooid_op?: string | null;
12331
12439
  };
12332
12440
  Relationships: [{
@@ -12509,6 +12617,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12509
12617
  agent_id: string | null;
12510
12618
  created_at: string;
12511
12619
  driver: string;
12620
+ extern_printer_id: string | null;
12512
12621
  id: string;
12513
12622
  ip_adres: string | null;
12514
12623
  laatst_gezien: string | null;
@@ -12530,6 +12639,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12530
12639
  agent_id?: string | null;
12531
12640
  created_at?: string;
12532
12641
  driver?: string;
12642
+ extern_printer_id?: string | null;
12533
12643
  id?: string;
12534
12644
  ip_adres?: string | null;
12535
12645
  laatst_gezien?: string | null;
@@ -12551,6 +12661,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12551
12661
  agent_id?: string | null;
12552
12662
  created_at?: string;
12553
12663
  driver?: string;
12664
+ extern_printer_id?: string | null;
12554
12665
  id?: string;
12555
12666
  ip_adres?: string | null;
12556
12667
  laatst_gezien?: string | null;
@@ -18155,6 +18266,125 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18155
18266
  };
18156
18267
  Returns: import("./types").Json;
18157
18268
  };
18269
+ claim_cloud_print_jobs: {
18270
+ Args: {
18271
+ _max?: number;
18272
+ };
18273
+ Returns: {
18274
+ agent_id: string | null;
18275
+ bron_job_id: string | null;
18276
+ created_at: string;
18277
+ documentnaam: string;
18278
+ documenttype: 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("./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: 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("./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("./types").Json;
18365
+ plan_run_id: string | null;
18366
+ planned_end: string | null;
18367
+ planned_start: string | null;
18368
+ priority: number;
18369
+ result: import("./types").Json | null;
18370
+ rule_config_id: string | null;
18371
+ rule_version: number | null;
18372
+ sequence: number;
18373
+ shadow: boolean;
18374
+ started_at: string | null;
18375
+ status: string;
18376
+ strategy_id: string | null;
18377
+ task_type: string;
18378
+ updated_at: string;
18379
+ user_id: string;
18380
+ }[];
18381
+ SetofOptions: {
18382
+ from: "*";
18383
+ to: "logistics_tasks";
18384
+ isOneToOne: false;
18385
+ isSetofReturn: true;
18386
+ };
18387
+ };
18158
18388
  claim_print_jobs: {
18159
18389
  Args: {
18160
18390
  _agent_id: string;
@@ -18166,22 +18396,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18166
18396
  created_at: string;
18167
18397
  documentnaam: string;
18168
18398
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
18399
+ extern_job_id: string | null;
18169
18400
  foutmelding: string | null;
18170
18401
  gebruiker_id: string | null;
18171
18402
  gebruiker_naam: string;
18172
18403
  gestart_op: string | null;
18173
18404
  id: string;
18405
+ idempotentie_sleutel: string | null;
18174
18406
  is_herprint: boolean;
18175
18407
  kopieen: number;
18176
18408
  layout_id: string | null;
18177
18409
  opgepakt_op: string | null;
18178
18410
  paginas: number;
18179
18411
  payload: import("./types").Json;
18412
+ pdf_base64: string | null;
18413
+ pdf_url: string | null;
18180
18414
  pogingen: number;
18181
18415
  printer_id: string | null;
18182
18416
  render_html: string | null;
18183
18417
  status: Database["public"]["Enums"]["print_job_status"];
18184
18418
  updated_at: string;
18419
+ volgende_poging: string | null;
18185
18420
  voltooid_op: string | null;
18186
18421
  }[];
18187
18422
  SetofOptions: {
@@ -18219,10 +18454,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18219
18454
  isSetofReturn: true;
18220
18455
  };
18221
18456
  };
18457
+ cleanup_floriday_stock_queue: {
18458
+ Args: never;
18459
+ Returns: undefined;
18460
+ };
18222
18461
  cleanup_old_bookings: {
18223
18462
  Args: never;
18224
18463
  Returns: undefined;
18225
18464
  };
18465
+ complete_floriday_stock_queue: {
18466
+ Args: {
18467
+ p_attempt_id?: string;
18468
+ p_error?: string;
18469
+ p_id: string;
18470
+ p_ok: boolean;
18471
+ p_permanent?: boolean;
18472
+ };
18473
+ Returns: undefined;
18474
+ };
18226
18475
  consume_bom_for_production: {
18227
18476
  Args: {
18228
18477
  p_connection_id: string;
@@ -18619,6 +18868,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18619
18868
  };
18620
18869
  Returns: number;
18621
18870
  };
18871
+ get_offer_branding: {
18872
+ Args: never;
18873
+ Returns: import("./types").Json;
18874
+ };
18622
18875
  get_offer_by_link_code: {
18623
18876
  Args: {
18624
18877
  p_code: string;
@@ -18910,6 +19163,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18910
19163
  p_worker?: string;
18911
19164
  };
18912
19165
  Returns: {
19166
+ attempt_log: import("./types").Json;
19167
+ attempts: number;
18913
19168
  buffer_ref: string | null;
18914
19169
  claimed_at: string | null;
18915
19170
  claimed_by: string | null;
@@ -18919,6 +19174,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18919
19174
  due_at: string | null;
18920
19175
  error: string | null;
18921
19176
  id: string;
19177
+ last_error: string | null;
19178
+ next_attempt_at: string | null;
18922
19179
  order_ref: string;
18923
19180
  owner_module: string;
18924
19181
  payload: import("./types").Json;
@@ -18951,6 +19208,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18951
19208
  p_worker?: string;
18952
19209
  };
18953
19210
  Returns: {
19211
+ attempt_log: import("./types").Json;
19212
+ attempts: number;
18954
19213
  buffer_ref: string | null;
18955
19214
  claimed_at: string | null;
18956
19215
  claimed_by: string | null;
@@ -18960,6 +19219,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18960
19219
  due_at: string | null;
18961
19220
  error: string | null;
18962
19221
  id: string;
19222
+ last_error: string | null;
19223
+ next_attempt_at: string | null;
18963
19224
  order_ref: string;
18964
19225
  owner_module: string;
18965
19226
  payload: import("./types").Json;
@@ -18992,6 +19253,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18992
19253
  p_task_id: string;
18993
19254
  };
18994
19255
  Returns: {
19256
+ attempt_log: import("./types").Json;
19257
+ attempts: number;
18995
19258
  buffer_ref: string | null;
18996
19259
  claimed_at: string | null;
18997
19260
  claimed_by: string | null;
@@ -19001,6 +19264,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19001
19264
  due_at: string | null;
19002
19265
  error: string | null;
19003
19266
  id: string;
19267
+ last_error: string | null;
19268
+ next_attempt_at: string | null;
19004
19269
  order_ref: string;
19005
19270
  owner_module: string;
19006
19271
  payload: import("./types").Json;
@@ -19082,6 +19347,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19082
19347
  p_task_id: string;
19083
19348
  };
19084
19349
  Returns: {
19350
+ attempt_log: import("./types").Json;
19351
+ attempts: number;
19085
19352
  buffer_ref: string | null;
19086
19353
  claimed_at: string | null;
19087
19354
  claimed_by: string | null;
@@ -19091,6 +19358,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19091
19358
  due_at: string | null;
19092
19359
  error: string | null;
19093
19360
  id: string;
19361
+ last_error: string | null;
19362
+ next_attempt_at: string | null;
19094
19363
  order_ref: string;
19095
19364
  owner_module: string;
19096
19365
  payload: import("./types").Json;
@@ -19117,6 +19386,51 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19117
19386
  isSetofReturn: false;
19118
19387
  };
19119
19388
  };
19389
+ logistics_floriday_claim_pushes: {
19390
+ Args: {
19391
+ _lease_seconds?: number;
19392
+ _limit?: number;
19393
+ _worker?: string;
19394
+ };
19395
+ Returns: {
19396
+ attempts: number;
19397
+ fulfillment_order_id: string;
19398
+ id: string;
19399
+ last_sent_hash: string;
19400
+ order_ref: string;
19401
+ payload: import("./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("./types").Json;
19430
+ _payload_hash?: string;
19431
+ };
19432
+ Returns: string;
19433
+ };
19120
19434
  logistics_live_carriers: {
19121
19435
  Args: {
19122
19436
  p_order_ref: string;
@@ -19464,6 +19778,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19464
19778
  };
19465
19779
  Returns: string;
19466
19780
  };
19781
+ pick_active_printers: {
19782
+ Args: never;
19783
+ Returns: {
19784
+ id: string;
19785
+ locatie: string;
19786
+ naam: string;
19787
+ online: boolean;
19788
+ }[];
19789
+ };
19467
19790
  pick_claim_document: {
19468
19791
  Args: {
19469
19792
  _queue_item_id: string;
@@ -19650,6 +19973,52 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19650
19973
  };
19651
19974
  Returns: undefined;
19652
19975
  };
19976
+ pick_reset_print: {
19977
+ Args: {
19978
+ _queue_item_id: string;
19979
+ _session_id: string;
19980
+ };
19981
+ Returns: {
19982
+ announced_at: string;
19983
+ assigned_user_id: string | null;
19984
+ barcode: string | null;
19985
+ cancelled_at: string | null;
19986
+ cart_count: number;
19987
+ completed_at: string | null;
19988
+ country_code: string | null;
19989
+ created_at: string;
19990
+ customer_name: string | null;
19991
+ delivery_address: string | null;
19992
+ document_number: string | null;
19993
+ document_type_id: string | null;
19994
+ due_at: string | null;
19995
+ id: string;
19996
+ is_urgent: boolean;
19997
+ line_count: number;
19998
+ order_number: string | null;
19999
+ order_type: string | null;
20000
+ payload: import("./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("./types").Json;
20014
+ };
20015
+ SetofOptions: {
20016
+ from: "*";
20017
+ to: "pick_queue";
20018
+ isOneToOne: true;
20019
+ isSetofReturn: false;
20020
+ };
20021
+ };
19653
20022
  pick_station_dashboard: {
19654
20023
  Args: never;
19655
20024
  Returns: {
@@ -19840,10 +20209,20 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19840
20209
  };
19841
20210
  Returns: import("./types").Json;
19842
20211
  };
20212
+ ruim_print_jobs_op: {
20213
+ Args: {
20214
+ _bewaar_dagen?: number;
20215
+ };
20216
+ Returns: number;
20217
+ };
19843
20218
  run_floriday_continuous_stock_sync: {
19844
20219
  Args: never;
19845
20220
  Returns: undefined;
19846
20221
  };
20222
+ run_logistics_tasks_dispatch: {
20223
+ Args: never;
20224
+ Returns: undefined;
20225
+ };
19847
20226
  run_twinfield_queue_tick: {
19848
20227
  Args: never;
19849
20228
  Returns: undefined;
@@ -20084,6 +20463,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20084
20463
  };
20085
20464
  Returns: number;
20086
20465
  };
20466
+ schedule_floriday_stock_queue_process: {
20467
+ Args: {
20468
+ p_apikey: string;
20469
+ p_url: string;
20470
+ };
20471
+ Returns: number;
20472
+ };
20087
20473
  schedule_floriday_token_refresh: {
20088
20474
  Args: {
20089
20475
  p_apikey: string;
@@ -20273,7 +20659,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20273
20659
  };
20274
20660
  Enums: {
20275
20661
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20276
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20662
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20277
20663
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20278
20664
  doc_orientation: "portrait" | "landscape";
20279
20665
  exact_env: "staging" | "live";