pmcf 1.98.2 → 1.99.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/types/root.d.mts CHANGED
@@ -95,118 +95,6 @@ export class Root extends Location {
95
95
  collection: boolean;
96
96
  writeable: boolean;
97
97
  };
98
- dns: {
99
- type: {
100
- name: string;
101
- owners: string[];
102
- priority: number;
103
- properties: {
104
- source: {
105
- type: string;
106
- collection: boolean;
107
- writeable: boolean;
108
- };
109
- trusted: {
110
- type: string;
111
- collection: boolean;
112
- writeable: boolean;
113
- };
114
- protected: {
115
- type: string;
116
- collection: boolean;
117
- writeable: boolean;
118
- };
119
- open: {
120
- type: string;
121
- collection: boolean;
122
- writeable: boolean;
123
- };
124
- hasSVRRecords: {
125
- type: string;
126
- collection: boolean;
127
- writeable: boolean;
128
- };
129
- hasCatalog: {
130
- type: string;
131
- collection: boolean;
132
- writeable: boolean;
133
- };
134
- hasLinkLocalAdresses: {
135
- type: string;
136
- collection: boolean;
137
- writeable: boolean;
138
- };
139
- notify: {
140
- type: string;
141
- collection: boolean;
142
- writeable: boolean;
143
- };
144
- recordTTL: {
145
- type: string;
146
- collection: boolean;
147
- writeable: boolean;
148
- };
149
- serial: {
150
- type: string;
151
- collection: boolean;
152
- writeable: boolean;
153
- };
154
- refresh: {
155
- type: string;
156
- collection: boolean;
157
- writeable: boolean;
158
- };
159
- retry: {
160
- type: string;
161
- collection: boolean;
162
- writeable: boolean;
163
- };
164
- expire: {
165
- type: string;
166
- collection: boolean;
167
- writeable: boolean;
168
- };
169
- minimum: {
170
- type: string;
171
- collection: boolean;
172
- writeable: boolean;
173
- };
174
- allowedUpdates: {
175
- type: string;
176
- collection: boolean;
177
- writeable: boolean;
178
- };
179
- };
180
- };
181
- collection: boolean;
182
- writeable: boolean;
183
- };
184
- ntp: {
185
- type: {
186
- name: string;
187
- owners: string[];
188
- priority: number;
189
- properties: {
190
- source: {
191
- type: string;
192
- collection: boolean;
193
- writeable: boolean;
194
- };
195
- };
196
- };
197
- collection: boolean;
198
- writeable: boolean;
199
- };
200
- dhcp: {
201
- type: {
202
- name: string;
203
- owners: string[];
204
- priority: number;
205
- properties: {};
206
- };
207
- collection: boolean;
208
- writeable: boolean;
209
- };
210
98
  country: {
211
99
  type: string;
212
100
  collection: boolean;
@@ -335,118 +223,6 @@ export class Root extends Location {
335
223
  collection: boolean;
336
224
  writeable: boolean;
337
225
  };
338
- dns: {
339
- type: {
340
- name: string;
341
- owners: string[];
342
- priority: number;
343
- properties: {
344
- source: {
345
- type: string;
346
- collection: boolean;
347
- writeable: boolean;
348
- };
349
- trusted: {
350
- type: string;
351
- collection: boolean;
352
- writeable: boolean;
353
- };
354
- protected: {
355
- type: string;
356
- collection: boolean;
357
- writeable: boolean;
358
- };
359
- open: {
360
- type: string;
361
- collection: boolean;
362
- writeable: boolean;
363
- };
364
- hasSVRRecords: {
365
- type: string;
366
- collection: boolean;
367
- writeable: boolean;
368
- };
369
- hasCatalog: {
370
- type: string;
371
- collection: boolean;
372
- writeable: boolean;
373
- };
374
- hasLinkLocalAdresses: {
375
- type: string;
376
- collection: boolean;
377
- writeable: boolean;
378
- };
379
- notify: {
380
- type: string;
381
- collection: boolean;
382
- writeable: boolean;
383
- };
384
- recordTTL: {
385
- type: string;
386
- collection: boolean;
387
- writeable: boolean;
388
- };
389
- serial: {
390
- type: string;
391
- collection: boolean;
392
- writeable: boolean;
393
- };
394
- refresh: {
395
- type: string;
396
- collection: boolean;
397
- writeable: boolean;
398
- };
399
- retry: {
400
- type: string;
401
- collection: boolean;
402
- writeable: boolean;
403
- };
404
- expire: {
405
- type: string;
406
- collection: boolean;
407
- writeable: boolean;
408
- };
409
- minimum: {
410
- type: string;
411
- collection: boolean;
412
- writeable: boolean;
413
- };
414
- allowedUpdates: {
415
- type: string;
416
- collection: boolean;
417
- writeable: boolean;
418
- };
419
- };
420
- };
421
- collection: boolean;
422
- writeable: boolean;
423
- };
424
- ntp: {
425
- type: {
426
- name: string;
427
- owners: string[];
428
- priority: number;
429
- properties: {
430
- source: {
431
- type: string;
432
- collection: boolean;
433
- writeable: boolean;
434
- };
435
- };
436
- };
437
- collection: boolean;
438
- writeable: boolean;
439
- };
440
- dhcp: {
441
- type: {
442
- name: string;
443
- owners: string[];
444
- priority: number;
445
- properties: {};
446
- };
447
- collection: boolean;
448
- writeable: boolean;
449
- };
450
226
  country: {
451
227
  type: string;
452
228
  collection: boolean;
@@ -1,4 +1,135 @@
1
1
  export function serviceAddresses(sources: any, filter: any, addressType?: string): any[];
2
+ export namespace ServiceTypeDefinition {
3
+ export let name: string;
4
+ export let owners: string[];
5
+ export let priority: number;
6
+ let _extends: {
7
+ name: string;
8
+ owners: any[];
9
+ properties: {
10
+ owner: {
11
+ type: string;
12
+ collection: boolean;
13
+ writeable: boolean;
14
+ };
15
+ type: {
16
+ type: string;
17
+ collection: boolean;
18
+ writeable: boolean;
19
+ };
20
+ name: {
21
+ type: string;
22
+ collection: boolean;
23
+ identifier: boolean;
24
+ writeable: boolean;
25
+ };
26
+ description: {
27
+ type: string;
28
+ collection: boolean;
29
+ writeable: boolean;
30
+ };
31
+ directory: {
32
+ type: string;
33
+ collection: boolean;
34
+ writeable: boolean;
35
+ };
36
+ packaging: {
37
+ type: string;
38
+ collection: boolean;
39
+ writeable: boolean;
40
+ };
41
+ tags: {
42
+ type: string;
43
+ collection: boolean;
44
+ writeable: boolean;
45
+ };
46
+ };
47
+ };
48
+ export { _extends as extends };
49
+ export function factoryFor(value: any): typeof Service | typeof DNSService | typeof NTPService | typeof DHCPService;
50
+ export let properties: {
51
+ ipAddresses: {
52
+ type: string;
53
+ collection: boolean;
54
+ writeable: boolean;
55
+ };
56
+ port: {
57
+ type: string;
58
+ collection: boolean;
59
+ writeable: boolean;
60
+ };
61
+ protocol: {
62
+ type: string;
63
+ collection: boolean;
64
+ writeable: boolean;
65
+ };
66
+ alias: {
67
+ type: string;
68
+ collection: boolean;
69
+ writeable: boolean;
70
+ };
71
+ type: {
72
+ type: string;
73
+ collection: boolean;
74
+ writeable: boolean;
75
+ };
76
+ master: {
77
+ type: string;
78
+ collection: boolean;
79
+ writeable: boolean;
80
+ };
81
+ priority: {
82
+ type: string;
83
+ collection: boolean;
84
+ writeable: boolean;
85
+ };
86
+ weight: {
87
+ type: string;
88
+ collection: boolean;
89
+ writeable: boolean;
90
+ };
91
+ srvPrefix: {
92
+ type: string;
93
+ collection: boolean;
94
+ writeable: boolean;
95
+ };
96
+ tls: {
97
+ type: string;
98
+ collection: boolean;
99
+ writeable: boolean;
100
+ };
101
+ systemd: {
102
+ type: string;
103
+ collection: boolean;
104
+ writeable: boolean;
105
+ };
106
+ hostName: {
107
+ type: string;
108
+ collection: boolean;
109
+ writeable: boolean;
110
+ };
111
+ cidrAddresses: {
112
+ type: string;
113
+ collection: boolean;
114
+ writeable: boolean;
115
+ };
116
+ cidrAddress: {
117
+ type: string;
118
+ collection: boolean;
119
+ writeable: boolean;
120
+ };
121
+ rawAddresses: {
122
+ type: string;
123
+ collection: boolean;
124
+ writeable: boolean;
125
+ };
126
+ rawAddress: {
127
+ type: string;
128
+ collection: boolean;
129
+ writeable: boolean;
130
+ };
131
+ };
132
+ }
2
133
  export class Service extends Base {
3
134
  static get typeDefinition(): {
4
135
  name: string;
@@ -46,6 +177,7 @@ export class Service extends Base {
46
177
  };
47
178
  };
48
179
  };
180
+ factoryFor(value: any): typeof Service | typeof DNSService | typeof NTPService | typeof DHCPService;
49
181
  properties: {
50
182
  ipAddresses: {
51
183
  type: string;
@@ -157,4 +289,7 @@ export class Service extends Base {
157
289
  #private;
158
290
  }
159
291
  export function sortByPriority(a: any, b: any): number;
292
+ import { DNSService } from "./module.mjs";
293
+ import { NTPService } from "./module.mjs";
294
+ import { DHCPService } from "./module.mjs";
160
295
  import { Base } from "./base.mjs";
@@ -1,10 +1,11 @@
1
- export class DHCPService extends Base {
1
+ export class DHCPService extends Service {
2
2
  static get typeDefinition(): {
3
3
  name: string;
4
4
  owners: string[];
5
5
  priority: number;
6
6
  properties: {};
7
7
  };
8
+ get type(): string;
8
9
  preparePackages(dir: any): AsyncGenerator<{
9
10
  dir: any;
10
11
  sources: AsyncIterable<import("content-entry").ContentEntry>[];
@@ -14,7 +15,8 @@ export class DHCPService extends Base {
14
15
  description: string;
15
16
  access: string;
16
17
  dependencies: string[];
18
+ replaces: string[];
17
19
  };
18
20
  }, void, unknown>;
19
21
  }
20
- import { Base } from "./base.mjs";
22
+ import { Service } from "../service.mjs";
@@ -1,6 +1,6 @@
1
1
  export function reverseAddress(address: any): any;
2
2
  export function reverseArpaAddress(address: any): string;
3
- export class DNSService extends Base {
3
+ export class DNSService extends Service {
4
4
  static get typeDefinition(): {
5
5
  name: string;
6
6
  owners: string[];
@@ -94,6 +94,7 @@ export class DNSService extends Base {
94
94
  retry: number;
95
95
  expire: number;
96
96
  minimum: number;
97
+ get type(): string;
97
98
  get soaUpdates(): number[];
98
99
  set protected(value: any[]);
99
100
  get protected(): any[];
@@ -123,4 +124,4 @@ export class DNSService extends Base {
123
124
  }, void, unknown>;
124
125
  #private;
125
126
  }
126
- import { Base } from "./base.mjs";
127
+ import { Service } from "../service.mjs";
@@ -1,4 +1,4 @@
1
- export class NTPService extends Base {
1
+ export class NTPService extends Service {
2
2
  static get typeDefinition(): {
3
3
  name: string;
4
4
  owners: string[];
@@ -11,6 +11,7 @@ export class NTPService extends Base {
11
11
  };
12
12
  };
13
13
  };
14
+ get type(): string;
14
15
  set source(value: any[]);
15
16
  get source(): any[];
16
17
  get systemdConfig(): (string | {
@@ -18,4 +19,4 @@ export class NTPService extends Base {
18
19
  })[];
19
20
  #private;
20
21
  }
21
- import { Base } from "./base.mjs";
22
+ import { Service } from "../service.mjs";