pmcf 1.52.4 → 1.52.6
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/bin/pmcf-named-defs +1 -1
- package/package.json +1 -1
- package/src/dns.mjs +15 -2
- package/types/cluster.d.mts +42 -2
- package/types/dns.d.mts +27 -2
- package/types/location.d.mts +42 -2
- package/types/network.d.mts +21 -1
- package/types/owner.d.mts +21 -1
- package/types/root.d.mts +42 -2
package/bin/pmcf-named-defs
CHANGED
|
@@ -180,7 +180,7 @@ async function generateNamedDefs(owner, targetDir) {
|
|
|
180
180
|
dns.allowedUpdates.length ? dns.allowedUpdates.join(";") : "none"
|
|
181
181
|
}; };`
|
|
182
182
|
);
|
|
183
|
-
zoneConfig.push(` notify yes;`);
|
|
183
|
+
zoneConfig.push(` notify ${dns.notify ? "yes" : "no"};`);
|
|
184
184
|
zoneConfig.push(`};`);
|
|
185
185
|
zoneConfig.push("");
|
|
186
186
|
|
package/package.json
CHANGED
package/src/dns.mjs
CHANGED
|
@@ -8,8 +8,12 @@ const DNSServiceTypeDefinition = {
|
|
|
8
8
|
properties: {
|
|
9
9
|
hasSVRRecords: { type: "boolean", collection: false, writeable: true },
|
|
10
10
|
hasCatalog: { type: "boolean", collection: false, writeable: true },
|
|
11
|
+
notify: { type: "boolean", collection: false, writeable: true },
|
|
11
12
|
recordTTL: { type: "string", collection: false, writeable: true },
|
|
12
|
-
|
|
13
|
+
refresh: { type: "string", collection: false, writeable: true },
|
|
14
|
+
retry: { type: "string", collection: false, writeable: true },
|
|
15
|
+
expire: { type: "string", collection: false, writeable: true },
|
|
16
|
+
minimum: { type: "string", collection: false, writeable: true },
|
|
13
17
|
forwardsTo: { type: "network", collection: true, writeable: true },
|
|
14
18
|
allowedUpdates: { type: "string", collection: true, writeable: true }
|
|
15
19
|
}
|
|
@@ -18,11 +22,16 @@ const DNSServiceTypeDefinition = {
|
|
|
18
22
|
export class DNSService extends Base {
|
|
19
23
|
allowedUpdates = [];
|
|
20
24
|
recordTTL = "1W";
|
|
21
|
-
soaUpdates = [36000, 72000, 600000, 60000];
|
|
22
25
|
hasSVRRecords = true;
|
|
23
26
|
hasCatalog = true;
|
|
27
|
+
notify = true;
|
|
24
28
|
#forwardsTo = [];
|
|
25
29
|
|
|
30
|
+
refresh = 36000;
|
|
31
|
+
retry = 72000;
|
|
32
|
+
expire = 600000;
|
|
33
|
+
minimum = 60000;
|
|
34
|
+
|
|
26
35
|
static {
|
|
27
36
|
addType(this);
|
|
28
37
|
}
|
|
@@ -39,6 +48,10 @@ export class DNSService extends Base {
|
|
|
39
48
|
this.read(data, DNSServiceTypeDefinition);
|
|
40
49
|
}
|
|
41
50
|
|
|
51
|
+
get soaUpdates() {
|
|
52
|
+
return [this.refresh, this.retry, this.expire, this.minimum];
|
|
53
|
+
}
|
|
54
|
+
|
|
42
55
|
set forwardsTo(value) {
|
|
43
56
|
this.#forwardsTo.push(value);
|
|
44
57
|
}
|
package/types/cluster.d.mts
CHANGED
|
@@ -97,12 +97,32 @@ export class Cluster extends Owner {
|
|
|
97
97
|
collection: boolean;
|
|
98
98
|
writeable: boolean;
|
|
99
99
|
};
|
|
100
|
+
notify: {
|
|
101
|
+
type: string;
|
|
102
|
+
collection: boolean;
|
|
103
|
+
writeable: boolean;
|
|
104
|
+
};
|
|
100
105
|
recordTTL: {
|
|
101
106
|
type: string;
|
|
102
107
|
collection: boolean;
|
|
103
108
|
writeable: boolean;
|
|
104
109
|
};
|
|
105
|
-
|
|
110
|
+
refresh: {
|
|
111
|
+
type: string;
|
|
112
|
+
collection: boolean;
|
|
113
|
+
writeable: boolean;
|
|
114
|
+
};
|
|
115
|
+
retry: {
|
|
116
|
+
type: string;
|
|
117
|
+
collection: boolean;
|
|
118
|
+
writeable: boolean;
|
|
119
|
+
};
|
|
120
|
+
expire: {
|
|
121
|
+
type: string;
|
|
122
|
+
collection: boolean;
|
|
123
|
+
writeable: boolean;
|
|
124
|
+
};
|
|
125
|
+
minimum: {
|
|
106
126
|
type: string;
|
|
107
127
|
collection: boolean;
|
|
108
128
|
writeable: boolean;
|
|
@@ -251,12 +271,32 @@ export class Cluster extends Owner {
|
|
|
251
271
|
collection: boolean;
|
|
252
272
|
writeable: boolean;
|
|
253
273
|
};
|
|
274
|
+
notify: {
|
|
275
|
+
type: string;
|
|
276
|
+
collection: boolean;
|
|
277
|
+
writeable: boolean;
|
|
278
|
+
};
|
|
254
279
|
recordTTL: {
|
|
255
280
|
type: string;
|
|
256
281
|
collection: boolean;
|
|
257
282
|
writeable: boolean;
|
|
258
283
|
};
|
|
259
|
-
|
|
284
|
+
refresh: {
|
|
285
|
+
type: string;
|
|
286
|
+
collection: boolean;
|
|
287
|
+
writeable: boolean;
|
|
288
|
+
};
|
|
289
|
+
retry: {
|
|
290
|
+
type: string;
|
|
291
|
+
collection: boolean;
|
|
292
|
+
writeable: boolean;
|
|
293
|
+
};
|
|
294
|
+
expire: {
|
|
295
|
+
type: string;
|
|
296
|
+
collection: boolean;
|
|
297
|
+
writeable: boolean;
|
|
298
|
+
};
|
|
299
|
+
minimum: {
|
|
260
300
|
type: string;
|
|
261
301
|
collection: boolean;
|
|
262
302
|
writeable: boolean;
|
package/types/dns.d.mts
CHANGED
|
@@ -14,12 +14,32 @@ export class DNSService extends Base {
|
|
|
14
14
|
collection: boolean;
|
|
15
15
|
writeable: boolean;
|
|
16
16
|
};
|
|
17
|
+
notify: {
|
|
18
|
+
type: string;
|
|
19
|
+
collection: boolean;
|
|
20
|
+
writeable: boolean;
|
|
21
|
+
};
|
|
17
22
|
recordTTL: {
|
|
18
23
|
type: string;
|
|
19
24
|
collection: boolean;
|
|
20
25
|
writeable: boolean;
|
|
21
26
|
};
|
|
22
|
-
|
|
27
|
+
refresh: {
|
|
28
|
+
type: string;
|
|
29
|
+
collection: boolean;
|
|
30
|
+
writeable: boolean;
|
|
31
|
+
};
|
|
32
|
+
retry: {
|
|
33
|
+
type: string;
|
|
34
|
+
collection: boolean;
|
|
35
|
+
writeable: boolean;
|
|
36
|
+
};
|
|
37
|
+
expire: {
|
|
38
|
+
type: string;
|
|
39
|
+
collection: boolean;
|
|
40
|
+
writeable: boolean;
|
|
41
|
+
};
|
|
42
|
+
minimum: {
|
|
23
43
|
type: string;
|
|
24
44
|
collection: boolean;
|
|
25
45
|
writeable: boolean;
|
|
@@ -38,9 +58,14 @@ export class DNSService extends Base {
|
|
|
38
58
|
};
|
|
39
59
|
allowedUpdates: any[];
|
|
40
60
|
recordTTL: string;
|
|
41
|
-
soaUpdates: number[];
|
|
42
61
|
hasSVRRecords: boolean;
|
|
43
62
|
hasCatalog: boolean;
|
|
63
|
+
notify: boolean;
|
|
64
|
+
refresh: number;
|
|
65
|
+
retry: number;
|
|
66
|
+
expire: number;
|
|
67
|
+
minimum: number;
|
|
68
|
+
get soaUpdates(): number[];
|
|
44
69
|
set forwardsTo(value: any[]);
|
|
45
70
|
get forwardsTo(): any[];
|
|
46
71
|
findServices(): AsyncGenerator<any, void, any>;
|
package/types/location.d.mts
CHANGED
|
@@ -97,12 +97,32 @@ export class Location extends Owner {
|
|
|
97
97
|
collection: boolean;
|
|
98
98
|
writeable: boolean;
|
|
99
99
|
};
|
|
100
|
+
notify: {
|
|
101
|
+
type: string;
|
|
102
|
+
collection: boolean;
|
|
103
|
+
writeable: boolean;
|
|
104
|
+
};
|
|
100
105
|
recordTTL: {
|
|
101
106
|
type: string;
|
|
102
107
|
collection: boolean;
|
|
103
108
|
writeable: boolean;
|
|
104
109
|
};
|
|
105
|
-
|
|
110
|
+
refresh: {
|
|
111
|
+
type: string;
|
|
112
|
+
collection: boolean;
|
|
113
|
+
writeable: boolean;
|
|
114
|
+
};
|
|
115
|
+
retry: {
|
|
116
|
+
type: string;
|
|
117
|
+
collection: boolean;
|
|
118
|
+
writeable: boolean;
|
|
119
|
+
};
|
|
120
|
+
expire: {
|
|
121
|
+
type: string;
|
|
122
|
+
collection: boolean;
|
|
123
|
+
writeable: boolean;
|
|
124
|
+
};
|
|
125
|
+
minimum: {
|
|
106
126
|
type: string;
|
|
107
127
|
collection: boolean;
|
|
108
128
|
writeable: boolean;
|
|
@@ -251,12 +271,32 @@ export class Location extends Owner {
|
|
|
251
271
|
collection: boolean;
|
|
252
272
|
writeable: boolean;
|
|
253
273
|
};
|
|
274
|
+
notify: {
|
|
275
|
+
type: string;
|
|
276
|
+
collection: boolean;
|
|
277
|
+
writeable: boolean;
|
|
278
|
+
};
|
|
254
279
|
recordTTL: {
|
|
255
280
|
type: string;
|
|
256
281
|
collection: boolean;
|
|
257
282
|
writeable: boolean;
|
|
258
283
|
};
|
|
259
|
-
|
|
284
|
+
refresh: {
|
|
285
|
+
type: string;
|
|
286
|
+
collection: boolean;
|
|
287
|
+
writeable: boolean;
|
|
288
|
+
};
|
|
289
|
+
retry: {
|
|
290
|
+
type: string;
|
|
291
|
+
collection: boolean;
|
|
292
|
+
writeable: boolean;
|
|
293
|
+
};
|
|
294
|
+
expire: {
|
|
295
|
+
type: string;
|
|
296
|
+
collection: boolean;
|
|
297
|
+
writeable: boolean;
|
|
298
|
+
};
|
|
299
|
+
minimum: {
|
|
260
300
|
type: string;
|
|
261
301
|
collection: boolean;
|
|
262
302
|
writeable: boolean;
|
package/types/network.d.mts
CHANGED
|
@@ -99,12 +99,32 @@ export class Network extends Owner {
|
|
|
99
99
|
collection: boolean;
|
|
100
100
|
writeable: boolean;
|
|
101
101
|
};
|
|
102
|
+
notify: {
|
|
103
|
+
type: string;
|
|
104
|
+
collection: boolean;
|
|
105
|
+
writeable: boolean;
|
|
106
|
+
};
|
|
102
107
|
recordTTL: {
|
|
103
108
|
type: string;
|
|
104
109
|
collection: boolean;
|
|
105
110
|
writeable: boolean;
|
|
106
111
|
};
|
|
107
|
-
|
|
112
|
+
refresh: {
|
|
113
|
+
type: string;
|
|
114
|
+
collection: boolean;
|
|
115
|
+
writeable: boolean;
|
|
116
|
+
};
|
|
117
|
+
retry: {
|
|
118
|
+
type: string;
|
|
119
|
+
collection: boolean;
|
|
120
|
+
writeable: boolean;
|
|
121
|
+
};
|
|
122
|
+
expire: {
|
|
123
|
+
type: string;
|
|
124
|
+
collection: boolean;
|
|
125
|
+
writeable: boolean;
|
|
126
|
+
};
|
|
127
|
+
minimum: {
|
|
108
128
|
type: string;
|
|
109
129
|
collection: boolean;
|
|
110
130
|
writeable: boolean;
|
package/types/owner.d.mts
CHANGED
|
@@ -95,12 +95,32 @@ export class Owner extends Base {
|
|
|
95
95
|
collection: boolean;
|
|
96
96
|
writeable: boolean;
|
|
97
97
|
};
|
|
98
|
+
notify: {
|
|
99
|
+
type: string;
|
|
100
|
+
collection: boolean;
|
|
101
|
+
writeable: boolean;
|
|
102
|
+
};
|
|
98
103
|
recordTTL: {
|
|
99
104
|
type: string;
|
|
100
105
|
collection: boolean;
|
|
101
106
|
writeable: boolean;
|
|
102
107
|
};
|
|
103
|
-
|
|
108
|
+
refresh: {
|
|
109
|
+
type: string;
|
|
110
|
+
collection: boolean;
|
|
111
|
+
writeable: boolean;
|
|
112
|
+
};
|
|
113
|
+
retry: {
|
|
114
|
+
type: string;
|
|
115
|
+
collection: boolean;
|
|
116
|
+
writeable: boolean;
|
|
117
|
+
};
|
|
118
|
+
expire: {
|
|
119
|
+
type: string;
|
|
120
|
+
collection: boolean;
|
|
121
|
+
writeable: boolean;
|
|
122
|
+
};
|
|
123
|
+
minimum: {
|
|
104
124
|
type: string;
|
|
105
125
|
collection: boolean;
|
|
106
126
|
writeable: boolean;
|
package/types/root.d.mts
CHANGED
|
@@ -101,12 +101,32 @@ export class Root extends Location {
|
|
|
101
101
|
collection: boolean;
|
|
102
102
|
writeable: boolean;
|
|
103
103
|
};
|
|
104
|
+
notify: {
|
|
105
|
+
type: string;
|
|
106
|
+
collection: boolean;
|
|
107
|
+
writeable: boolean;
|
|
108
|
+
};
|
|
104
109
|
recordTTL: {
|
|
105
110
|
type: string;
|
|
106
111
|
collection: boolean;
|
|
107
112
|
writeable: boolean;
|
|
108
113
|
};
|
|
109
|
-
|
|
114
|
+
refresh: {
|
|
115
|
+
type: string;
|
|
116
|
+
collection: boolean;
|
|
117
|
+
writeable: boolean;
|
|
118
|
+
};
|
|
119
|
+
retry: {
|
|
120
|
+
type: string;
|
|
121
|
+
collection: boolean;
|
|
122
|
+
writeable: boolean;
|
|
123
|
+
};
|
|
124
|
+
expire: {
|
|
125
|
+
type: string;
|
|
126
|
+
collection: boolean;
|
|
127
|
+
writeable: boolean;
|
|
128
|
+
};
|
|
129
|
+
minimum: {
|
|
110
130
|
type: string;
|
|
111
131
|
collection: boolean;
|
|
112
132
|
writeable: boolean;
|
|
@@ -255,12 +275,32 @@ export class Root extends Location {
|
|
|
255
275
|
collection: boolean;
|
|
256
276
|
writeable: boolean;
|
|
257
277
|
};
|
|
278
|
+
notify: {
|
|
279
|
+
type: string;
|
|
280
|
+
collection: boolean;
|
|
281
|
+
writeable: boolean;
|
|
282
|
+
};
|
|
258
283
|
recordTTL: {
|
|
259
284
|
type: string;
|
|
260
285
|
collection: boolean;
|
|
261
286
|
writeable: boolean;
|
|
262
287
|
};
|
|
263
|
-
|
|
288
|
+
refresh: {
|
|
289
|
+
type: string;
|
|
290
|
+
collection: boolean;
|
|
291
|
+
writeable: boolean;
|
|
292
|
+
};
|
|
293
|
+
retry: {
|
|
294
|
+
type: string;
|
|
295
|
+
collection: boolean;
|
|
296
|
+
writeable: boolean;
|
|
297
|
+
};
|
|
298
|
+
expire: {
|
|
299
|
+
type: string;
|
|
300
|
+
collection: boolean;
|
|
301
|
+
writeable: boolean;
|
|
302
|
+
};
|
|
303
|
+
minimum: {
|
|
264
304
|
type: string;
|
|
265
305
|
collection: boolean;
|
|
266
306
|
writeable: boolean;
|