pmcf 3.4.0 → 3.4.2

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 (40) hide show
  1. package/package.json +2 -2
  2. package/src/base.mjs +14 -7
  3. package/src/host.mjs +20 -15
  4. package/src/location.mjs +2 -2
  5. package/src/network-interfaces/network-interface.mjs +4 -4
  6. package/src/network-support.mjs +16 -10
  7. package/src/owner.mjs +11 -7
  8. package/src/service.mjs +11 -6
  9. package/src/services/bind.mjs +9 -9
  10. package/src/services/kea.mjs +9 -8
  11. package/src/services/openldap.mjs +4 -4
  12. package/src/services/systemd-journal-upload.mjs +2 -2
  13. package/src/subnet.mjs +3 -3
  14. package/types/base.d.mts +9 -9
  15. package/types/cluster.d.mts +92 -105
  16. package/types/extra-source-service.d.mts +34 -47
  17. package/types/host.d.mts +58 -71
  18. package/types/location.d.mts +76 -76
  19. package/types/network-interfaces/ethernet.d.mts +50 -50
  20. package/types/network-interfaces/loopback.d.mts +50 -50
  21. package/types/network-interfaces/network-interface.d.mts +50 -50
  22. package/types/network-interfaces/wireguard.d.mts +50 -50
  23. package/types/network-interfaces/wlan.d.mts +75 -75
  24. package/types/network-support.d.mts +16 -16
  25. package/types/network.d.mts +34 -34
  26. package/types/owner.d.mts +34 -34
  27. package/types/root.d.mts +76 -76
  28. package/types/service.d.mts +70 -108
  29. package/types/services/bind.d.mts +85 -110
  30. package/types/services/chrony.d.mts +68 -94
  31. package/types/services/influxdb.d.mts +68 -94
  32. package/types/services/kea.d.mts +71 -97
  33. package/types/services/mosquitto.d.mts +68 -94
  34. package/types/services/openldap.d.mts +68 -94
  35. package/types/services/systemd-journal-remote.d.mts +68 -94
  36. package/types/services/systemd-journal-upload.d.mts +68 -94
  37. package/types/services/systemd-journal.d.mts +68 -94
  38. package/types/services/systemd-resolved.d.mts +68 -94
  39. package/types/services/systemd-timesyncd.d.mts +68 -94
  40. package/types/subnet.d.mts +1 -1
@@ -60,20 +60,7 @@ export namespace endpointProperties {
60
60
  get?: Function;
61
61
  env?: string[] | string;
62
62
  };
63
- export let types: {
64
- collection: boolean;
65
- type: string;
66
- isKey: boolean;
67
- writable: boolean;
68
- mandatory: boolean;
69
- private?: boolean;
70
- depends?: string;
71
- description?: string;
72
- default?: any;
73
- set?: Function;
74
- get?: Function;
75
- env?: string[] | string;
76
- };
63
+ export { string_collection_attribute as types };
77
64
  export { boolean_attribute_false as tls };
78
65
  }
79
66
  export namespace EndpointTypeDefinition {
@@ -101,9 +88,9 @@ export namespace ServiceTypeDefinition {
101
88
  };
102
89
  type: import("pacc").AttributeDefinition;
103
90
  name: {
104
- isKey: boolean;
105
91
  writable: boolean;
106
92
  type: string;
93
+ isKey: boolean;
107
94
  mandatory: boolean;
108
95
  collection: boolean;
109
96
  private?: boolean;
@@ -185,18 +172,18 @@ export namespace ServiceTypeDefinition {
185
172
  env?: string[] | string;
186
173
  };
187
174
  tags: {
188
- collection: boolean;
189
175
  writable: boolean;
176
+ collection: boolean;
190
177
  type: string;
191
178
  isKey: boolean;
192
179
  mandatory: boolean;
193
- private?: boolean;
194
- depends?: string;
195
- description?: string;
196
- default?: any;
197
- set?: Function;
198
- get?: Function;
199
- env?: string[] | string;
180
+ private: boolean;
181
+ depends: string;
182
+ description: string;
183
+ default: any;
184
+ set: Function;
185
+ get: Function;
186
+ env: string[] | string;
200
187
  };
201
188
  };
202
189
  };
@@ -234,18 +221,18 @@ export namespace ServiceTypeDefinition {
234
221
  env?: string[] | string;
235
222
  };
236
223
  systemd: {
237
- collection: boolean;
238
224
  writable: boolean;
225
+ collection: boolean;
239
226
  type: string;
240
227
  isKey: boolean;
241
228
  mandatory: boolean;
242
- private?: boolean;
243
- depends?: string;
244
- description?: string;
245
- default?: any;
246
- set?: Function;
247
- get?: Function;
248
- env?: string[] | string;
229
+ private: boolean;
230
+ depends: string;
231
+ description: string;
232
+ default: any;
233
+ set: Function;
234
+ get: Function;
235
+ env: string[] | string;
249
236
  };
250
237
  port: {
251
238
  writable: boolean;
@@ -290,20 +277,7 @@ export namespace ServiceTypeDefinition {
290
277
  get?: Function;
291
278
  env?: string[] | string;
292
279
  };
293
- types: {
294
- collection: boolean;
295
- type: string;
296
- isKey: boolean;
297
- writable: boolean;
298
- mandatory: boolean;
299
- private?: boolean;
300
- depends?: string;
301
- description?: string;
302
- default?: any;
303
- set?: Function;
304
- get?: Function;
305
- env?: string[] | string;
306
- };
280
+ types: typeof string_collection_attribute;
307
281
  tls: import("pacc").AttributeDefinition;
308
282
  hostName: {
309
283
  writable: boolean;
@@ -320,18 +294,18 @@ export namespace ServiceTypeDefinition {
320
294
  env?: string[] | string;
321
295
  };
322
296
  cidrAddresses: {
323
- collection: boolean;
324
297
  writable: boolean;
298
+ collection: boolean;
325
299
  type: string;
326
300
  isKey: boolean;
327
301
  mandatory: boolean;
328
- private?: boolean;
329
- depends?: string;
330
- description?: string;
331
- default?: any;
332
- set?: Function;
333
- get?: Function;
334
- env?: string[] | string;
302
+ private: boolean;
303
+ depends: string;
304
+ description: string;
305
+ default: any;
306
+ set: Function;
307
+ get: Function;
308
+ env: string[] | string;
335
309
  };
336
310
  cidrAddress: {
337
311
  writable: boolean;
@@ -348,18 +322,18 @@ export namespace ServiceTypeDefinition {
348
322
  env?: string[] | string;
349
323
  };
350
324
  addresses: {
351
- collection: boolean;
352
325
  writable: boolean;
326
+ collection: boolean;
353
327
  type: string;
354
328
  isKey: boolean;
355
329
  mandatory: boolean;
356
- private?: boolean;
357
- depends?: string;
358
- description?: string;
359
- default?: any;
360
- set?: Function;
361
- get?: Function;
362
- env?: string[] | string;
330
+ private: boolean;
331
+ depends: string;
332
+ description: string;
333
+ default: any;
334
+ set: Function;
335
+ get: Function;
336
+ env: string[] | string;
363
337
  };
364
338
  address: {
365
339
  writable: boolean;
@@ -393,9 +367,9 @@ export class Service extends Base {
393
367
  };
394
368
  type: import("pacc").AttributeDefinition;
395
369
  name: {
396
- isKey: boolean;
397
370
  writable: boolean;
398
371
  type: string;
372
+ isKey: boolean;
399
373
  mandatory: boolean;
400
374
  collection: boolean;
401
375
  private?: boolean;
@@ -477,18 +451,18 @@ export class Service extends Base {
477
451
  env?: string[] | string;
478
452
  };
479
453
  tags: {
480
- collection: boolean;
481
454
  writable: boolean;
455
+ collection: boolean;
482
456
  type: string;
483
457
  isKey: boolean;
484
458
  mandatory: boolean;
485
- private?: boolean;
486
- depends?: string;
487
- description?: string;
488
- default?: any;
489
- set?: Function;
490
- get?: Function;
491
- env?: string[] | string;
459
+ private: boolean;
460
+ depends: string;
461
+ description: string;
462
+ default: any;
463
+ set: Function;
464
+ get: Function;
465
+ env: string[] | string;
492
466
  };
493
467
  };
494
468
  };
@@ -524,18 +498,18 @@ export class Service extends Base {
524
498
  env?: string[] | string;
525
499
  };
526
500
  systemd: {
527
- collection: boolean;
528
501
  writable: boolean;
502
+ collection: boolean;
529
503
  type: string;
530
504
  isKey: boolean;
531
505
  mandatory: boolean;
532
- private?: boolean;
533
- depends?: string;
534
- description?: string;
535
- default?: any;
536
- set?: Function;
537
- get?: Function;
538
- env?: string[] | string;
506
+ private: boolean;
507
+ depends: string;
508
+ description: string;
509
+ default: any;
510
+ set: Function;
511
+ get: Function;
512
+ env: string[] | string;
539
513
  };
540
514
  port: {
541
515
  writable: boolean;
@@ -580,20 +554,7 @@ export class Service extends Base {
580
554
  get?: Function;
581
555
  env?: string[] | string;
582
556
  };
583
- types: {
584
- collection: boolean;
585
- type: string;
586
- isKey: boolean;
587
- writable: boolean;
588
- mandatory: boolean;
589
- private?: boolean;
590
- depends?: string;
591
- description?: string;
592
- default?: any;
593
- set?: Function;
594
- get?: Function;
595
- env?: string[] | string;
596
- };
557
+ types: typeof string_collection_attribute;
597
558
  tls: import("pacc").AttributeDefinition;
598
559
  hostName: {
599
560
  writable: boolean;
@@ -610,18 +571,18 @@ export class Service extends Base {
610
571
  env?: string[] | string;
611
572
  };
612
573
  cidrAddresses: {
613
- collection: boolean;
614
574
  writable: boolean;
575
+ collection: boolean;
615
576
  type: string;
616
577
  isKey: boolean;
617
578
  mandatory: boolean;
618
- private?: boolean;
619
- depends?: string;
620
- description?: string;
621
- default?: any;
622
- set?: Function;
623
- get?: Function;
624
- env?: string[] | string;
579
+ private: boolean;
580
+ depends: string;
581
+ description: string;
582
+ default: any;
583
+ set: Function;
584
+ get: Function;
585
+ env: string[] | string;
625
586
  };
626
587
  cidrAddress: {
627
588
  writable: boolean;
@@ -638,18 +599,18 @@ export class Service extends Base {
638
599
  env?: string[] | string;
639
600
  };
640
601
  addresses: {
641
- collection: boolean;
642
602
  writable: boolean;
603
+ collection: boolean;
643
604
  type: string;
644
605
  isKey: boolean;
645
606
  mandatory: boolean;
646
- private?: boolean;
647
- depends?: string;
648
- description?: string;
649
- default?: any;
650
- set?: Function;
651
- get?: Function;
652
- env?: string[] | string;
607
+ private: boolean;
608
+ depends: string;
609
+ description: string;
610
+ default: any;
611
+ set: Function;
612
+ get: Function;
613
+ env: string[] | string;
653
614
  };
654
615
  address: {
655
616
  writable: boolean;
@@ -708,6 +669,7 @@ export class Service extends Base {
708
669
  }
709
670
  export function sortAscendingByPriority(a: any, b: any): number;
710
671
  export function sortDescendingByPriority(a: any, b: any): number;
672
+ import { string_collection_attribute } from "pacc";
711
673
  import { boolean_attribute_false } from "pacc";
712
674
  import { Base } from "pmcf";
713
675
  import { Host } from "pmcf";
@@ -16,9 +16,9 @@ export class BindService extends ExtraSourceService {
16
16
  };
17
17
  type: import("pacc").AttributeDefinition;
18
18
  name: {
19
- isKey: boolean;
20
19
  writable: boolean;
21
20
  type: string;
21
+ isKey: boolean;
22
22
  mandatory: boolean;
23
23
  collection: boolean;
24
24
  private?: boolean;
@@ -100,18 +100,18 @@ export class BindService extends ExtraSourceService {
100
100
  env?: string[] | string;
101
101
  };
102
102
  tags: {
103
- collection: boolean;
104
103
  writable: boolean;
104
+ collection: boolean;
105
105
  type: string;
106
106
  isKey: boolean;
107
107
  mandatory: boolean;
108
- private?: boolean;
109
- depends?: string;
110
- description?: string;
111
- default?: any;
112
- set?: Function;
113
- get?: Function;
114
- env?: string[] | string;
108
+ private: boolean;
109
+ depends: string;
110
+ description: string;
111
+ default: any;
112
+ set: Function;
113
+ get: Function;
114
+ env: string[] | string;
115
115
  };
116
116
  };
117
117
  };
@@ -147,18 +147,18 @@ export class BindService extends ExtraSourceService {
147
147
  env?: string[] | string;
148
148
  };
149
149
  systemd: {
150
- collection: boolean;
151
150
  writable: boolean;
151
+ collection: boolean;
152
152
  type: string;
153
153
  isKey: boolean;
154
154
  mandatory: boolean;
155
- private?: boolean;
156
- depends?: string;
157
- description?: string;
158
- default?: any;
159
- set?: Function;
160
- get?: Function;
161
- env?: string[] | string;
155
+ private: boolean;
156
+ depends: string;
157
+ description: string;
158
+ default: any;
159
+ set: Function;
160
+ get: Function;
161
+ env: string[] | string;
162
162
  };
163
163
  port: {
164
164
  writable: boolean;
@@ -203,20 +203,7 @@ export class BindService extends ExtraSourceService {
203
203
  get?: Function;
204
204
  env?: string[] | string;
205
205
  };
206
- types: {
207
- collection: boolean;
208
- type: string;
209
- isKey: boolean;
210
- writable: boolean;
211
- mandatory: boolean;
212
- private?: boolean;
213
- depends?: string;
214
- description?: string;
215
- default?: any;
216
- set?: Function;
217
- get?: Function;
218
- env?: string[] | string;
219
- };
206
+ types: typeof string_collection_attribute;
220
207
  tls: import("pacc").AttributeDefinition;
221
208
  hostName: {
222
209
  writable: boolean;
@@ -233,18 +220,18 @@ export class BindService extends ExtraSourceService {
233
220
  env?: string[] | string;
234
221
  };
235
222
  cidrAddresses: {
236
- collection: boolean;
237
223
  writable: boolean;
224
+ collection: boolean;
238
225
  type: string;
239
226
  isKey: boolean;
240
227
  mandatory: boolean;
241
- private?: boolean;
242
- depends?: string;
243
- description?: string;
244
- default?: any;
245
- set?: Function;
246
- get?: Function;
247
- env?: string[] | string;
228
+ private: boolean;
229
+ depends: string;
230
+ description: string;
231
+ default: any;
232
+ set: Function;
233
+ get: Function;
234
+ env: string[] | string;
248
235
  };
249
236
  cidrAddress: {
250
237
  writable: boolean;
@@ -261,18 +248,18 @@ export class BindService extends ExtraSourceService {
261
248
  env?: string[] | string;
262
249
  };
263
250
  addresses: {
264
- collection: boolean;
265
251
  writable: boolean;
252
+ collection: boolean;
266
253
  type: string;
267
254
  isKey: boolean;
268
255
  mandatory: boolean;
269
- private?: boolean;
270
- depends?: string;
271
- description?: string;
272
- default?: any;
273
- set?: Function;
274
- get?: Function;
275
- env?: string[] | string;
256
+ private: boolean;
257
+ depends: string;
258
+ description: string;
259
+ default: any;
260
+ set: Function;
261
+ get: Function;
262
+ env: string[] | string;
276
263
  };
277
264
  address: {
278
265
  writable: boolean;
@@ -309,9 +296,9 @@ export class BindService extends ExtraSourceService {
309
296
  };
310
297
  type: import("pacc").AttributeDefinition;
311
298
  name: {
312
- isKey: boolean;
313
299
  writable: boolean;
314
300
  type: string;
301
+ isKey: boolean;
315
302
  mandatory: boolean;
316
303
  collection: boolean;
317
304
  private?: boolean;
@@ -393,18 +380,18 @@ export class BindService extends ExtraSourceService {
393
380
  env?: string[] | string;
394
381
  };
395
382
  tags: {
396
- collection: boolean;
397
383
  writable: boolean;
384
+ collection: boolean;
398
385
  type: string;
399
386
  isKey: boolean;
400
387
  mandatory: boolean;
401
- private?: boolean;
402
- depends?: string;
403
- description?: string;
404
- default?: any;
405
- set?: Function;
406
- get?: Function;
407
- env?: string[] | string;
388
+ private: boolean;
389
+ depends: string;
390
+ description: string;
391
+ default: any;
392
+ set: Function;
393
+ get: Function;
394
+ env: string[] | string;
408
395
  };
409
396
  };
410
397
  };
@@ -440,18 +427,18 @@ export class BindService extends ExtraSourceService {
440
427
  env?: string[] | string;
441
428
  };
442
429
  systemd: {
443
- collection: boolean;
444
430
  writable: boolean;
431
+ collection: boolean;
445
432
  type: string;
446
433
  isKey: boolean;
447
434
  mandatory: boolean;
448
- private?: boolean;
449
- depends?: string;
450
- description?: string;
451
- default?: any;
452
- set?: Function;
453
- get?: Function;
454
- env?: string[] | string;
435
+ private: boolean;
436
+ depends: string;
437
+ description: string;
438
+ default: any;
439
+ set: Function;
440
+ get: Function;
441
+ env: string[] | string;
455
442
  };
456
443
  port: {
457
444
  writable: boolean;
@@ -496,20 +483,7 @@ export class BindService extends ExtraSourceService {
496
483
  get?: Function;
497
484
  env?: string[] | string;
498
485
  };
499
- types: {
500
- collection: boolean;
501
- type: string;
502
- isKey: boolean;
503
- writable: boolean;
504
- mandatory: boolean;
505
- private?: boolean;
506
- depends?: string;
507
- description?: string;
508
- default?: any;
509
- set?: Function;
510
- get?: Function;
511
- env?: string[] | string;
512
- };
486
+ types: typeof string_collection_attribute;
513
487
  tls: import("pacc").AttributeDefinition;
514
488
  hostName: {
515
489
  writable: boolean;
@@ -526,18 +500,18 @@ export class BindService extends ExtraSourceService {
526
500
  env?: string[] | string;
527
501
  };
528
502
  cidrAddresses: {
529
- collection: boolean;
530
503
  writable: boolean;
504
+ collection: boolean;
531
505
  type: string;
532
506
  isKey: boolean;
533
507
  mandatory: boolean;
534
- private?: boolean;
535
- depends?: string;
536
- description?: string;
537
- default?: any;
538
- set?: Function;
539
- get?: Function;
540
- env?: string[] | string;
508
+ private: boolean;
509
+ depends: string;
510
+ description: string;
511
+ default: any;
512
+ set: Function;
513
+ get: Function;
514
+ env: string[] | string;
541
515
  };
542
516
  cidrAddress: {
543
517
  writable: boolean;
@@ -554,18 +528,18 @@ export class BindService extends ExtraSourceService {
554
528
  env?: string[] | string;
555
529
  };
556
530
  addresses: {
557
- collection: boolean;
558
531
  writable: boolean;
532
+ collection: boolean;
559
533
  type: string;
560
534
  isKey: boolean;
561
535
  mandatory: boolean;
562
- private?: boolean;
563
- depends?: string;
564
- description?: string;
565
- default?: any;
566
- set?: Function;
567
- get?: Function;
568
- env?: string[] | string;
536
+ private: boolean;
537
+ depends: string;
538
+ description: string;
539
+ default: any;
540
+ set: Function;
541
+ get: Function;
542
+ env: string[] | string;
569
543
  };
570
544
  address: {
571
545
  writable: boolean;
@@ -619,18 +593,18 @@ export class BindService extends ExtraSourceService {
619
593
  hasLinkLocalAdresses: import("pacc").AttributeDefinition;
620
594
  hasLocationRecord: import("pacc").AttributeDefinition;
621
595
  excludeInterfaceKinds: {
622
- collection: boolean;
623
596
  writable: boolean;
597
+ collection: boolean;
624
598
  type: string;
625
599
  isKey: boolean;
626
600
  mandatory: boolean;
627
- private?: boolean;
628
- depends?: string;
629
- description?: string;
630
- default?: any;
631
- set?: Function;
632
- get?: Function;
633
- env?: string[] | string;
601
+ private: boolean;
602
+ depends: string;
603
+ description: string;
604
+ default: any;
605
+ set: Function;
606
+ get: Function;
607
+ env: string[] | string;
634
608
  };
635
609
  exclude: {
636
610
  type: string[];
@@ -723,18 +697,18 @@ export class BindService extends ExtraSourceService {
723
697
  env?: string[] | string;
724
698
  };
725
699
  allowedUpdates: {
726
- collection: boolean;
727
700
  writable: boolean;
701
+ collection: boolean;
728
702
  type: string;
729
703
  isKey: boolean;
730
704
  mandatory: boolean;
731
- private?: boolean;
732
- depends?: string;
733
- description?: string;
734
- default?: any;
735
- set?: Function;
736
- get?: Function;
737
- env?: string[] | string;
705
+ private: boolean;
706
+ depends: string;
707
+ description: string;
708
+ default: any;
709
+ set: Function;
710
+ get: Function;
711
+ env: string[] | string;
738
712
  };
739
713
  };
740
714
  service: {
@@ -805,3 +779,4 @@ export class BindService extends ExtraSourceService {
805
779
  writeZones(packageData: any, configs: any): Promise<void>;
806
780
  }
807
781
  import { ExtraSourceService } from "pmcf";
782
+ import { string_collection_attribute } from "pacc";