@flowselections/layout-maker 1.6.6 → 1.7.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.
package/README.md CHANGED
@@ -22,3 +22,17 @@ cd <repository-name>
22
22
  npm i
23
23
  npm run dev
24
24
  ```
25
+
26
+ ## Installeren in een andere shell
27
+
28
+ 1. Draai `sql/print-schema.sql` één keer in de Supabase-database van die shell
29
+ (SQL editor). Het script is idempotent en zet tabellen, rechten, RLS,
30
+ functies en de geplande taken klaar. Zorg dat de extensies `pg_cron` en
31
+ `pg_net` aan staan.
32
+ 2. Zet in de omgeving van de shell:
33
+ - `SUPABASE_URL` en `SERVICE_ROLE_KEY` — nodig voor achtergrondprinten
34
+ - `CENTRAL_AUTH_URL` en `CENTRAL_AUTH_SECRET` — nodig voor de printdienst
35
+ 3. Klaar. Zodra de module in de shell draait meldt hij zichzelf aan als
36
+ verwerker van de printwachtrij; de geplande taak `print-queue-tick` verwerkt
37
+ daarna elke minuut de wachtende opdrachten. De taak `print-queue-cleanup`
38
+ ruimt dagelijks oude opdrachten en bestanden op.
package/dist-lib/index.js CHANGED
@@ -51,7 +51,7 @@ export { TemplateModuleLogo } from './components/TemplateModuleLogo';
51
51
  export const layoutmodule = {
52
52
  id: "layout-maker",
53
53
  name: "Layouts en printers",
54
- version: "1.0.0",
54
+ version: "1.7.0",
55
55
  nav: {
56
56
  label: "Layouts en printers",
57
57
  href: "/layouts-printers",
@@ -9418,14 +9418,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9418
9418
  };
9419
9419
  mailbox_messages: {
9420
9420
  Row: {
9421
+ attachments: import("./types").Json;
9421
9422
  body_html: string | null;
9422
9423
  body_text: string | null;
9424
+ cc_recipients: import("./types").Json;
9423
9425
  connection_id: string | null;
9424
9426
  created_at: string;
9425
9427
  error_message: string | null;
9426
9428
  external_id: string | null;
9427
9429
  from_email: string | null;
9428
9430
  from_name: string | null;
9431
+ has_attachments: boolean;
9429
9432
  id: string;
9430
9433
  message_id: string | null;
9431
9434
  profile_id: string | null;
@@ -9433,18 +9436,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9433
9436
  received_at: string | null;
9434
9437
  status: string;
9435
9438
  subject: string | null;
9439
+ to_recipients: import("./types").Json;
9436
9440
  uid: number | null;
9437
9441
  updated_at: string;
9438
9442
  };
9439
9443
  Insert: {
9444
+ attachments?: import("./types").Json;
9440
9445
  body_html?: string | null;
9441
9446
  body_text?: string | null;
9447
+ cc_recipients?: import("./types").Json;
9442
9448
  connection_id?: string | null;
9443
9449
  created_at?: string;
9444
9450
  error_message?: string | null;
9445
9451
  external_id?: string | null;
9446
9452
  from_email?: string | null;
9447
9453
  from_name?: string | null;
9454
+ has_attachments?: boolean;
9448
9455
  id?: string;
9449
9456
  message_id?: string | null;
9450
9457
  profile_id?: string | null;
@@ -9452,18 +9459,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9452
9459
  received_at?: string | null;
9453
9460
  status?: string;
9454
9461
  subject?: string | null;
9462
+ to_recipients?: import("./types").Json;
9455
9463
  uid?: number | null;
9456
9464
  updated_at?: string;
9457
9465
  };
9458
9466
  Update: {
9467
+ attachments?: import("./types").Json;
9459
9468
  body_html?: string | null;
9460
9469
  body_text?: string | null;
9470
+ cc_recipients?: import("./types").Json;
9461
9471
  connection_id?: string | null;
9462
9472
  created_at?: string;
9463
9473
  error_message?: string | null;
9464
9474
  external_id?: string | null;
9465
9475
  from_email?: string | null;
9466
9476
  from_name?: string | null;
9477
+ has_attachments?: boolean;
9467
9478
  id?: string;
9468
9479
  message_id?: string | null;
9469
9480
  profile_id?: string | null;
@@ -9471,6 +9482,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9471
9482
  received_at?: string | null;
9472
9483
  status?: string;
9473
9484
  subject?: string | null;
9485
+ to_recipients?: import("./types").Json;
9474
9486
  uid?: number | null;
9475
9487
  updated_at?: string;
9476
9488
  };
@@ -9878,6 +9890,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9878
9890
  };
9879
9891
  Relationships: [];
9880
9892
  };
9893
+ module_registry: {
9894
+ Row: {
9895
+ created_at: string;
9896
+ is_active: boolean;
9897
+ last_seen_at: string;
9898
+ module_id: string;
9899
+ name: string;
9900
+ shell_id: string | null;
9901
+ sort_order: number | null;
9902
+ };
9903
+ Insert: {
9904
+ created_at?: string;
9905
+ is_active?: boolean;
9906
+ last_seen_at?: string;
9907
+ module_id: string;
9908
+ name: string;
9909
+ shell_id?: string | null;
9910
+ sort_order?: number | null;
9911
+ };
9912
+ Update: {
9913
+ created_at?: string;
9914
+ is_active?: boolean;
9915
+ last_seen_at?: string;
9916
+ module_id?: string;
9917
+ name?: string;
9918
+ shell_id?: string | null;
9919
+ sort_order?: number | null;
9920
+ };
9921
+ Relationships: [];
9922
+ };
9881
9923
  module_runtime_config: {
9882
9924
  Row: {
9883
9925
  key: string;
@@ -12490,18 +12532,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12490
12532
  };
12491
12533
  print_queue_settings: {
12492
12534
  Row: {
12535
+ bewaar_bestanden_dagen: number;
12536
+ bewaar_opdrachten_dagen: number;
12493
12537
  created_at: string;
12494
12538
  dubbel_venster_minuten: number;
12495
12539
  id: string;
12496
12540
  updated_at: string;
12497
12541
  };
12498
12542
  Insert: {
12543
+ bewaar_bestanden_dagen?: number;
12544
+ bewaar_opdrachten_dagen?: number;
12499
12545
  created_at?: string;
12500
12546
  dubbel_venster_minuten?: number;
12501
12547
  id?: string;
12502
12548
  updated_at?: string;
12503
12549
  };
12504
12550
  Update: {
12551
+ bewaar_bestanden_dagen?: number;
12552
+ bewaar_opdrachten_dagen?: number;
12505
12553
  created_at?: string;
12506
12554
  dubbel_venster_minuten?: number;
12507
12555
  id?: string;
@@ -16451,6 +16499,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16451
16499
  referencedColumns: ["id"];
16452
16500
  }];
16453
16501
  };
16502
+ user_module_permissions: {
16503
+ Row: {
16504
+ created_at: string;
16505
+ id: string;
16506
+ module_id: string;
16507
+ permission: string;
16508
+ updated_at: string;
16509
+ user_id: string;
16510
+ };
16511
+ Insert: {
16512
+ created_at?: string;
16513
+ id?: string;
16514
+ module_id: string;
16515
+ permission: string;
16516
+ updated_at?: string;
16517
+ user_id: string;
16518
+ };
16519
+ Update: {
16520
+ created_at?: string;
16521
+ id?: string;
16522
+ module_id?: string;
16523
+ permission?: string;
16524
+ updated_at?: string;
16525
+ user_id?: string;
16526
+ };
16527
+ Relationships: [];
16528
+ };
16454
16529
  user_roles: {
16455
16530
  Row: {
16456
16531
  created_at: string;
@@ -18635,6 +18710,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18635
18710
  };
18636
18711
  Returns: import("./types").Json;
18637
18712
  };
18713
+ effective_module_permission: {
18714
+ Args: {
18715
+ _module_id: string;
18716
+ _user_id: string;
18717
+ };
18718
+ Returns: string;
18719
+ };
18638
18720
  email_auth_decrypt: {
18639
18721
  Args: {
18640
18722
  cipher: string;
@@ -19773,6 +19855,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19773
19855
  };
19774
19856
  Returns: undefined;
19775
19857
  };
19858
+ my_module_permissions: {
19859
+ Args: never;
19860
+ Returns: {
19861
+ module_id: string;
19862
+ permission: string;
19863
+ }[];
19864
+ };
19776
19865
  next_manufacture_partij: {
19777
19866
  Args: {
19778
19867
  _tenant_id: string;
@@ -19823,6 +19912,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19823
19912
  };
19824
19913
  Returns: boolean;
19825
19914
  };
19915
+ opruim_print_historie: {
19916
+ Args: never;
19917
+ Returns: {
19918
+ ontdaan: number;
19919
+ verwijderd: number;
19920
+ }[];
19921
+ };
19826
19922
  order_number_prefix: {
19827
19923
  Args: {
19828
19924
  p_custom_fields?: import("./types").Json;
@@ -20666,6 +20762,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20666
20762
  };
20667
20763
  Returns: undefined;
20668
20764
  };
20765
+ trade_item_stock_duplicates: {
20766
+ Args: never;
20767
+ Returns: {
20768
+ keys: string[];
20769
+ product_id: string;
20770
+ product_name: string;
20771
+ row_count: number;
20772
+ }[];
20773
+ };
20669
20774
  try_debtor_lock: {
20670
20775
  Args: {
20671
20776
  _group_key: string;