@flowselections/layout-maker 1.28.0 → 1.31.0

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.
@@ -215,7 +215,7 @@ export async function laadPakbonData(db, opties) {
215
215
  const extra = (p["custom_fields"] ?? {});
216
216
  return {
217
217
  artikelnummer: String(p["article_number"] ?? ""),
218
- artikelnaam: String(bron["product_name"] ?? p["product"] ?? ""),
218
+ artikelnaam: taalTekst(bron["product_name"]) || taalTekst(p["product"]),
219
219
  potmaat: String(extra["potmaat"] ?? extra["Potmaat"] ?? ""),
220
220
  aantal: aantalPlanten,
221
221
  barcode: String(p["barcode"] ?? ""),
@@ -277,6 +277,37 @@ export async function laadPakbonData(db, opties) {
277
277
  * Kopsecties bij één of meerdere orders. Conservatief: bij meerdere orders
278
278
  * tonen we de klant (als die gelijk is) en géén willekeurig ordernummer.
279
279
  */
280
+ /** Leest een naam die als JSON met taalvarianten in de database staat. */
281
+ function taalTekst(waarde) {
282
+ if (waarde == null)
283
+ return "";
284
+ if (typeof waarde === "object") {
285
+ const o = waarde;
286
+ const keus = o["nl"] ?? Object.values(o)[0];
287
+ return keus == null ? "" : String(keus);
288
+ }
289
+ const tekst = String(waarde);
290
+ if (tekst.trim().startsWith("{")) {
291
+ try {
292
+ return taalTekst(JSON.parse(tekst));
293
+ }
294
+ catch {
295
+ return tekst;
296
+ }
297
+ }
298
+ return tekst;
299
+ }
300
+ /** Zet een ISO-timestamp of datumtekst om naar een leesbare datum (dd-mm-jjjj). */
301
+ function datumTekst(waarde) {
302
+ const tekst = waarde == null ? "" : String(waarde).trim();
303
+ if (!tekst)
304
+ return "";
305
+ const d = new Date(tekst);
306
+ if (Number.isNaN(d.getTime()))
307
+ return tekst;
308
+ const p = (n) => String(n).padStart(2, "0");
309
+ return `${p(d.getUTCDate())}-${p(d.getUTCMonth() + 1)}-${d.getUTCFullYear()}`;
310
+ }
280
311
  function maakKopsecties(orders, scope) {
281
312
  const nummers = uniek(orders.map((o) => o["order_number"]));
282
313
  const klanten = uniek(orders.map((o) => o["customer_name"]));
@@ -287,8 +318,8 @@ function maakKopsecties(orders, scope) {
287
318
  return {
288
319
  order: {
289
320
  nummer: meer ? "" : String(eerste["order_number"] ?? ""),
290
- datum: String(eerste["order_date"] ?? ""),
291
- leverdatum: String(eerste["delivery_date"] ?? ""),
321
+ datum: datumTekst(eerste["order_date"]),
322
+ leverdatum: datumTekst(eerste["delivery_date"]),
292
323
  referentie: lijst(nummers),
293
324
  opmerking: meer ? "" : String(eerste["notes"] ?? ""),
294
325
  aantal_orders: orders.length,
@@ -1 +1 @@
1
- {"version":3,"file":"pakbonHtml.d.ts","sourceRoot":"","sources":["../../src/lib/pakbonHtml.ts"],"names":[],"mappings":"AAUA,OAAO,EAmBL,KAAK,SAAS,EAEd,KAAK,YAAY,EAGlB,MAAM,iBAAiB,CAAC;AAGzB,8EAA8E;AAC9E,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC;AAEpC,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAWD,wBAAgB,GAAG,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAKtC;AAQD;;;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CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAWD,wBAAgB,GAAG,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAKtC;AAQD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAgE3D;AA8oBD,oEAAoE;AACpE,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,YAAY,GAAG,OAAO,EAC9B,KAAK,EAAE,WAAW,EAClB,MAAM,GAAE,kBAAuB,GAC9B,MAAM,CA8BR;AAgBD,gEAAgE;AAChE,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,YAAY,GAAG,OAAO,EAC9B,KAAK,EAAE,WAAW,EAClB,MAAM,GAAE,kBAAuB,GAC9B,MAAM,CAmER;AAED,iEAAiE;AACjE,wBAAgB,oBAAoB,IAAI,WAAW,CAElD;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,YAAY,GAAG,OAAO,EAC9B,KAAK,EAAE,WAAW,EAClB,MAAM,GAAE,kBAAuB,GAC9B,IAAI,CAsCN;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,YAAY,GAAG,OAAO,EAC9B,KAAK,EAAE,WAAW,EAClB,MAAM,GAAE,kBAAuB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAUf"}
@@ -421,13 +421,13 @@ function fustVerzamellijstHtml(order, s) {
421
421
  const totaal = groepen.reduce((n, f) => n + f.aantal, 0);
422
422
  const blokken = groepen
423
423
  .map((f) => {
424
- const kop = `<div class="sectitel" style="display:flex;justify-content:space-between"><span>${esc([f.fusttype, toonHoogte ? f.hoogte : "", toonHoogte ? f.belading : ""]
424
+ const kop = `<div class="fustgroepkop"><span>${esc([f.fusttype, toonHoogte ? f.hoogte : "", toonHoogte ? f.belading : ""]
425
425
  .filter(Boolean)
426
426
  .join(" · "))}</span><span>${f.aantal}× fust</span></div>`;
427
427
  if (!kolommen.length)
428
428
  return kop;
429
429
  const koppen = kolommen
430
- .map((k) => `<th class="onder"${FUST_RECHTS.has(k) ? ' style="text-align:right"' : ""}>${esc(FUST_KOLOM_LABELS[k])}</th>`)
430
+ .map((k) => `<th${FUST_RECHTS.has(k) ? ' style="text-align:right"' : ""}>${esc(FUST_KOLOM_LABELS[k])}</th>`)
431
431
  .join("");
432
432
  const rijen = f.producten
433
433
  .map((pr) => `<tr>${kolommen
@@ -643,8 +643,14 @@ export function renderPakbonDocument(config, order, opties = {}) {
643
643
  const font = opties.lettertype ?? 'Arial, Helvetica, "Segoe UI", sans-serif';
644
644
  const grootte = opties.lettergrootte ?? 8.5;
645
645
  const body = renderPakbonBody(config, order, opties);
646
+ // De layout bepaalt of er paginanummers op de afdruk komen; de PDF-motor
647
+ // leest dit uit de meta, zodat de wachtrij niets extra hoeft door te geven.
648
+ const totalen = arr(leesPakbonConfig(config).secties).find((s) => s.type === "totalen");
649
+ const paginanummers = !!totalen && opt(totalen, "toon_paginanummer", false) === true;
646
650
  return `<!doctype html><html lang="nl"><head><meta charset="utf-8" />
651
+ <meta name="pdf-paginanummers" content="${paginanummers ? "ja" : "nee"}" />
647
652
  <title>${esc(opties.titel ?? "Pakbon")}</title>
653
+
648
654
  <style>
649
655
  @page { size: ${b}mm ${h}mm; margin: ${marge}mm; }
650
656
  * { box-sizing: border-box; }
@@ -652,6 +658,8 @@ html, body { margin: 0; padding: 0; }
652
658
  body { font-family: ${font}; font-size: ${grootte}pt; color: #111827; line-height: 1.35; }
653
659
  .blok { margin-bottom: 2mm; }
654
660
  .sectitel { font-size: 90%; font-weight: 600; text-transform: uppercase; color: #6b7280; margin-bottom: 0.6mm; }
661
+ .fustgroepkop { display: flex; justify-content: space-between; font-weight: 600; color: #111827; border-bottom: 0.45mm solid #111827; padding-bottom: 0.5mm; margin-bottom: 0.6mm; }
662
+
655
663
  .vet { font-weight: 600; }
656
664
  .kv { display: flex; justify-content: space-between; gap: 3mm; }
657
665
  .kv .k { color: #6b7280; }
@@ -680,7 +688,7 @@ tr.zebra td { background: #f3f4f6; }
680
688
  .laagkop.compact { border-bottom: none; }
681
689
  .meta { display: flex; gap: 3mm; font-size: 88%; font-weight: 400; color: #4b5563; }
682
690
  .totalen { display: flex; flex-wrap: wrap; gap: 5mm; border-top: 0.25mm solid #d1d5db; padding-top: 1.2mm; font-weight: 500; }
683
- .paginavoet { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; }
691
+ .paginavoet { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 0.35mm solid #9ca3af; padding-top: 1mm; }
684
692
  .handtekening { margin-top: 3mm; }
685
693
  .lijnveld { margin-top: 4mm; border-bottom: 0.25mm solid #6b7280; padding-bottom: 3mm; }
686
694
  .lijnveld.hoog { padding-bottom: 10mm; }
@@ -1 +1 @@
1
- {"version":3,"file":"printQueue.server.d.ts","sourceRoot":"","sources":["../../src/lib/printQueue.server.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAsB5D,KAAK,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE/B,mFAAmF;AACnF,MAAM,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAEpD;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAW1E;AAeD;;;;;GAKG;AACH,KAAK,WAAW,GAAG;IAAE,MAAM,EAAE,GAAG,GAAG,IAAI,CAAC;IAAC,WA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Printer(db, job, layout) {
416
416
  }
417
417
  /** Haalt de logo's op die in de layout gebruikt worden, met tijdelijke URL. */
418
418
  async function logosVoor(db, layout) {
419
- const logoId = layout?.config?.logo?.logoId ?? null;
420
- if (!logoId)
419
+ const config = layout?.config ?? null;
420
+ const ids = new Set();
421
+ const documentLogo = config?.logo?.logoId;
422
+ if (documentLogo)
423
+ ids.add(String(documentLogo));
424
+ // Ook logo's die als blok in de ontwerper staan meenemen.
425
+ for (const sectie of Array.isArray(config?.sections) ? config.sections : []) {
426
+ const id = sectie?.opties?.logoId ?? sectie?.logoId;
427
+ if (id)
428
+ ids.add(String(id));
429
+ }
430
+ for (const blok of Array.isArray(config?.blokken) ? config.blokken : []) {
431
+ const id = blok?.opties?.logoId ?? blok?.logoId;
432
+ if (id)
433
+ ids.add(String(id));
434
+ }
435
+ if (!ids.size)
421
436
  return [];
422
437
  const { data } = await db
423
438
  .from("layout_logos")
424
439
  .select("id, naam, bestandspad, bestand_url")
425
- .eq("id", logoId)
426
- .maybeSingle();
427
- const logo = data;
428
- if (!logo)
429
- return [];
430
- let viewUrl = logo.bestand_url ?? null;
431
- if (logo.bestandspad) {
432
- const { data: sign } = await db.storage
433
- .from("layout-logos")
434
- .createSignedUrl(logo.bestandspad, 3600);
435
- if (sign?.signedUrl)
436
- viewUrl = sign.signedUrl;
437
- }
438
- return viewUrl ? [{ id: logo.id, naam: logo.naam, viewUrl }] : [];
440
+ .in("id", [...ids]);
441
+ const uit = [];
442
+ for (const logo of Array.isArray(data) ? data : []) {
443
+ let viewUrl = logo["bestand_url"] ?? null;
444
+ if (logo["bestandspad"]) {
445
+ const { data: sign } = await db.storage
446
+ .from("layout-logos")
447
+ .createSignedUrl(String(logo["bestandspad"]), 3600);
448
+ if (sign?.signedUrl)
449
+ viewUrl = sign.signedUrl;
450
+ }
451
+ if (viewUrl)
452
+ uit.push({ id: logo["id"], naam: logo["naam"], viewUrl });
453
+ }
454
+ return uit;
439
455
  }
440
456
  /**
441
457
  * Bouwt de HTML van de opdracht.
@@ -10814,6 +10814,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
10814
10814
  last_error: string | null;
10815
10815
  last_error_at: string | null;
10816
10816
  last_success_at: string | null;
10817
+ provider: string;
10817
10818
  updated_at: string;
10818
10819
  };
10819
10820
  Insert: {
@@ -10825,6 +10826,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
10825
10826
  last_error?: string | null;
10826
10827
  last_error_at?: string | null;
10827
10828
  last_success_at?: string | null;
10829
+ provider?: string;
10828
10830
  updated_at?: string;
10829
10831
  };
10830
10832
  Update: {
@@ -10836,6 +10838,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
10836
10838
  last_error?: string | null;
10837
10839
  last_error_at?: string | null;
10838
10840
  last_success_at?: string | null;
10841
+ provider?: string;
10839
10842
  updated_at?: string;
10840
10843
  };
10841
10844
  Relationships: [];
@@ -13573,6 +13576,39 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
13573
13576
  };
13574
13577
  Relationships: [];
13575
13578
  };
13579
+ print_dedupe_events: {
13580
+ Row: {
13581
+ bestaande_job_id: string | null;
13582
+ created_at: string;
13583
+ detail: string | null;
13584
+ documentnaam: string | null;
13585
+ documenttype: string | null;
13586
+ id: string;
13587
+ idempotentie_sleutel: string;
13588
+ reden: string;
13589
+ };
13590
+ Insert: {
13591
+ bestaande_job_id?: string | null;
13592
+ created_at?: string;
13593
+ detail?: string | null;
13594
+ documentnaam?: string | null;
13595
+ documenttype?: string | null;
13596
+ id?: string;
13597
+ idempotentie_sleutel: string;
13598
+ reden: string;
13599
+ };
13600
+ Update: {
13601
+ bestaande_job_id?: string | null;
13602
+ created_at?: string;
13603
+ detail?: string | null;
13604
+ documentnaam?: string | null;
13605
+ documenttype?: string | null;
13606
+ id?: string;
13607
+ idempotentie_sleutel?: string;
13608
+ reden?: string;
13609
+ };
13610
+ Relationships: [];
13611
+ };
13576
13612
  print_job_logs: {
13577
13613
  Row: {
13578
13614
  created_at: string;
@@ -21999,10 +22035,6 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
21999
22035
  };
22000
22036
  Returns: string;
22001
22037
  };
22002
- maps_kick_queue: {
22003
- Args: never;
22004
- Returns: undefined;
22005
- };
22006
22038
  mark_offer_clicked: {
22007
22039
  Args: {
22008
22040
  p_code: string;
@@ -22318,6 +22350,14 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
22318
22350
  _session_id?: string;
22319
22351
  };
22320
22352
  Returns: string;
22353
+ } | {
22354
+ Args: {
22355
+ _is_herprint?: boolean;
22356
+ _printer_id?: string;
22357
+ _queue_item_id: string;
22358
+ _session_id?: string;
22359
+ };
22360
+ Returns: string;
22321
22361
  };
22322
22362
  pick_order_context: {
22323
22363
  Args: {
@@ -22620,6 +22660,14 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
22620
22660
  };
22621
22661
  Returns: undefined;
22622
22662
  };
22663
+ replace_order_carts: {
22664
+ Args: {
22665
+ p_buffer_id: string;
22666
+ p_carts: import("../integrations/supabase/types.js").Json;
22667
+ p_order_id: string;
22668
+ };
22669
+ Returns: import("../integrations/supabase/types.js").Json;
22670
+ };
22623
22671
  reset_floriday_sync_cursor: {
22624
22672
  Args: {
22625
22673
  p_connection_id: string;
@@ -34069,6 +34117,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
34069
34117
  last_error: string | null;
34070
34118
  last_error_at: string | null;
34071
34119
  last_success_at: string | null;
34120
+ provider: string;
34072
34121
  updated_at: string;
34073
34122
  };
34074
34123
  Insert: {
@@ -34080,6 +34129,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
34080
34129
  last_error?: string | null;
34081
34130
  last_error_at?: string | null;
34082
34131
  last_success_at?: string | null;
34132
+ provider?: string;
34083
34133
  updated_at?: string;
34084
34134
  };
34085
34135
  Update: {
@@ -34091,6 +34141,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
34091
34141
  last_error?: string | null;
34092
34142
  last_error_at?: string | null;
34093
34143
  last_success_at?: string | null;
34144
+ provider?: string;
34094
34145
  updated_at?: string;
34095
34146
  };
34096
34147
  Relationships: [];
@@ -36828,6 +36879,39 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
36828
36879
  };
36829
36880
  Relationships: [];
36830
36881
  };
36882
+ print_dedupe_events: {
36883
+ Row: {
36884
+ bestaande_job_id: string | null;
36885
+ created_at: string;
36886
+ detail: string | null;
36887
+ documentnaam: string | null;
36888
+ documenttype: string | null;
36889
+ id: string;
36890
+ idempotentie_sleutel: string;
36891
+ reden: string;
36892
+ };
36893
+ Insert: {
36894
+ bestaande_job_id?: string | null;
36895
+ created_at?: string;
36896
+ detail?: string | null;
36897
+ documentnaam?: string | null;
36898
+ documenttype?: string | null;
36899
+ id?: string;
36900
+ idempotentie_sleutel: string;
36901
+ reden: string;
36902
+ };
36903
+ Update: {
36904
+ bestaande_job_id?: string | null;
36905
+ created_at?: string;
36906
+ detail?: string | null;
36907
+ documentnaam?: string | null;
36908
+ documenttype?: string | null;
36909
+ id?: string;
36910
+ idempotentie_sleutel?: string;
36911
+ reden?: string;
36912
+ };
36913
+ Relationships: [];
36914
+ };
36831
36915
  print_job_logs: {
36832
36916
  Row: {
36833
36917
  created_at: string;
@@ -45254,10 +45338,6 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
45254
45338
  };
45255
45339
  Returns: string;
45256
45340
  };
45257
- maps_kick_queue: {
45258
- Args: never;
45259
- Returns: undefined;
45260
- };
45261
45341
  mark_offer_clicked: {
45262
45342
  Args: {
45263
45343
  p_code: string;
@@ -45573,6 +45653,14 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
45573
45653
  _session_id?: string;
45574
45654
  };
45575
45655
  Returns: string;
45656
+ } | {
45657
+ Args: {
45658
+ _is_herprint?: boolean;
45659
+ _printer_id?: string;
45660
+ _queue_item_id: string;
45661
+ _session_id?: string;
45662
+ };
45663
+ Returns: string;
45576
45664
  };
45577
45665
  pick_order_context: {
45578
45666
  Args: {
@@ -45875,6 +45963,14 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
45875
45963
  };
45876
45964
  Returns: undefined;
45877
45965
  };
45966
+ replace_order_carts: {
45967
+ Args: {
45968
+ p_buffer_id: string;
45969
+ p_carts: import("../integrations/supabase/types.js").Json;
45970
+ p_order_id: string;
45971
+ };
45972
+ Returns: import("../integrations/supabase/types.js").Json;
45973
+ };
45878
45974
  reset_floriday_sync_cursor: {
45879
45975
  Args: {
45880
45976
  p_connection_id: string;
@@ -57334,6 +57430,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
57334
57430
  last_error: string | null;
57335
57431
  last_error_at: string | null;
57336
57432
  last_success_at: string | null;
57433
+ provider: string;
57337
57434
  updated_at: string;
57338
57435
  };
57339
57436
  Insert: {
@@ -57345,6 +57442,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
57345
57442
  last_error?: string | null;
57346
57443
  last_error_at?: string | null;
57347
57444
  last_success_at?: string | null;
57445
+ provider?: string;
57348
57446
  updated_at?: string;
57349
57447
  };
57350
57448
  Update: {
@@ -57356,6 +57454,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
57356
57454
  last_error?: string | null;
57357
57455
  last_error_at?: string | null;
57358
57456
  last_success_at?: string | null;
57457
+ provider?: string;
57359
57458
  updated_at?: string;
57360
57459
  };
57361
57460
  Relationships: [];
@@ -60093,6 +60192,39 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
60093
60192
  };
60094
60193
  Relationships: [];
60095
60194
  };
60195
+ print_dedupe_events: {
60196
+ Row: {
60197
+ bestaande_job_id: string | null;
60198
+ created_at: string;
60199
+ detail: string | null;
60200
+ documentnaam: string | null;
60201
+ documenttype: string | null;
60202
+ id: string;
60203
+ idempotentie_sleutel: string;
60204
+ reden: string;
60205
+ };
60206
+ Insert: {
60207
+ bestaande_job_id?: string | null;
60208
+ created_at?: string;
60209
+ detail?: string | null;
60210
+ documentnaam?: string | null;
60211
+ documenttype?: string | null;
60212
+ id?: string;
60213
+ idempotentie_sleutel: string;
60214
+ reden: string;
60215
+ };
60216
+ Update: {
60217
+ bestaande_job_id?: string | null;
60218
+ created_at?: string;
60219
+ detail?: string | null;
60220
+ documentnaam?: string | null;
60221
+ documenttype?: string | null;
60222
+ id?: string;
60223
+ idempotentie_sleutel?: string;
60224
+ reden?: string;
60225
+ };
60226
+ Relationships: [];
60227
+ };
60096
60228
  print_job_logs: {
60097
60229
  Row: {
60098
60230
  created_at: string;
@@ -68519,10 +68651,6 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
68519
68651
  };
68520
68652
  Returns: string;
68521
68653
  };
68522
- maps_kick_queue: {
68523
- Args: never;
68524
- Returns: undefined;
68525
- };
68526
68654
  mark_offer_clicked: {
68527
68655
  Args: {
68528
68656
  p_code: string;
@@ -68838,6 +68966,14 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
68838
68966
  _session_id?: string;
68839
68967
  };
68840
68968
  Returns: string;
68969
+ } | {
68970
+ Args: {
68971
+ _is_herprint?: boolean;
68972
+ _printer_id?: string;
68973
+ _queue_item_id: string;
68974
+ _session_id?: string;
68975
+ };
68976
+ Returns: string;
68841
68977
  };
68842
68978
  pick_order_context: {
68843
68979
  Args: {
@@ -69140,6 +69276,14 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
69140
69276
  };
69141
69277
  Returns: undefined;
69142
69278
  };
69279
+ replace_order_carts: {
69280
+ Args: {
69281
+ p_buffer_id: string;
69282
+ p_carts: import("../integrations/supabase/types.js").Json;
69283
+ p_order_id: string;
69284
+ };
69285
+ Returns: import("../integrations/supabase/types.js").Json;
69286
+ };
69143
69287
  reset_floriday_sync_cursor: {
69144
69288
  Args: {
69145
69289
  p_connection_id: string;
@@ -80593,6 +80737,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
80593
80737
  last_error: string | null;
80594
80738
  last_error_at: string | null;
80595
80739
  last_success_at: string | null;
80740
+ provider: string;
80596
80741
  updated_at: string;
80597
80742
  };
80598
80743
  Insert: {
@@ -80604,6 +80749,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
80604
80749
  last_error?: string | null;
80605
80750
  last_error_at?: string | null;
80606
80751
  last_success_at?: string | null;
80752
+ provider?: string;
80607
80753
  updated_at?: string;
80608
80754
  };
80609
80755
  Update: {
@@ -80615,6 +80761,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
80615
80761
  last_error?: string | null;
80616
80762
  last_error_at?: string | null;
80617
80763
  last_success_at?: string | null;
80764
+ provider?: string;
80618
80765
  updated_at?: string;
80619
80766
  };
80620
80767
  Relationships: [];
@@ -83352,6 +83499,39 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
83352
83499
  };
83353
83500
  Relationships: [];
83354
83501
  };
83502
+ print_dedupe_events: {
83503
+ Row: {
83504
+ bestaande_job_id: string | null;
83505
+ created_at: string;
83506
+ detail: string | null;
83507
+ documentnaam: string | null;
83508
+ documenttype: string | null;
83509
+ id: string;
83510
+ idempotentie_sleutel: string;
83511
+ reden: string;
83512
+ };
83513
+ Insert: {
83514
+ bestaande_job_id?: string | null;
83515
+ created_at?: string;
83516
+ detail?: string | null;
83517
+ documentnaam?: string | null;
83518
+ documenttype?: string | null;
83519
+ id?: string;
83520
+ idempotentie_sleutel: string;
83521
+ reden: string;
83522
+ };
83523
+ Update: {
83524
+ bestaande_job_id?: string | null;
83525
+ created_at?: string;
83526
+ detail?: string | null;
83527
+ documentnaam?: string | null;
83528
+ documenttype?: string | null;
83529
+ id?: string;
83530
+ idempotentie_sleutel?: string;
83531
+ reden?: string;
83532
+ };
83533
+ Relationships: [];
83534
+ };
83355
83535
  print_job_logs: {
83356
83536
  Row: {
83357
83537
  created_at: string;
@@ -91778,10 +91958,6 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
91778
91958
  };
91779
91959
  Returns: string;
91780
91960
  };
91781
- maps_kick_queue: {
91782
- Args: never;
91783
- Returns: undefined;
91784
- };
91785
91961
  mark_offer_clicked: {
91786
91962
  Args: {
91787
91963
  p_code: string;
@@ -92097,6 +92273,14 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
92097
92273
  _session_id?: string;
92098
92274
  };
92099
92275
  Returns: string;
92276
+ } | {
92277
+ Args: {
92278
+ _is_herprint?: boolean;
92279
+ _printer_id?: string;
92280
+ _queue_item_id: string;
92281
+ _session_id?: string;
92282
+ };
92283
+ Returns: string;
92100
92284
  };
92101
92285
  pick_order_context: {
92102
92286
  Args: {
@@ -92399,6 +92583,14 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
92399
92583
  };
92400
92584
  Returns: undefined;
92401
92585
  };
92586
+ replace_order_carts: {
92587
+ Args: {
92588
+ p_buffer_id: string;
92589
+ p_carts: import("../integrations/supabase/types.js").Json;
92590
+ p_order_id: string;
92591
+ };
92592
+ Returns: import("../integrations/supabase/types.js").Json;
92593
+ };
92402
92594
  reset_floriday_sync_cursor: {
92403
92595
  Args: {
92404
92596
  p_connection_id: string;