pmcf 2.74.1 → 2.74.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "2.74.1",
3
+ "version": "2.74.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/host.mjs CHANGED
@@ -71,11 +71,11 @@ const HostTypeDefinition = {
71
71
  writeable: true,
72
72
  values: ["x86", "x86_64", "aarch64", "armv7"]
73
73
  },
74
- replaces: { type: "string", collection: true, writeable: true },
75
- depends: { type: "string", collection: true, writeable: true },
76
- provides: { type: "string", collection: true, writeable: true },
74
+ replaces: { ...default_attribute, collection: true, writeable: true },
75
+ depends: { ...default_attribute, collection: true, writeable: true },
76
+ provides: { ...default_attribute, collection: true, writeable: true },
77
77
  extends: { type: "host", collection: true, writeable: true },
78
- model: { type: "string", collection: false, writeable: false },
78
+ model: { ...default_attribute, collection: false, writeable: false },
79
79
  isModel: { type: "boolean", collection: false, writeable: false }
80
80
  }
81
81
  };
package/src/location.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { FileContentProvider } from "npm-pkgbuild";
2
+ import { default_attribute } from "pacc";
2
3
  import { Owner } from "pmcf";
3
4
  import { addType } from "./types.mjs";
4
5
  import { loadHooks } from "./hooks.mjs";
@@ -9,7 +10,7 @@ const LocationTypeDefinition = {
9
10
  priority: 1.0,
10
11
  extends: Owner.typeDefinition,
11
12
  properties: {
12
- locales: { type: "string", collection: true, writeable: true }
13
+ locales: { ...default_attribute, collection: true, writeable: true }
13
14
  }
14
15
  };
15
16
 
@@ -1,5 +1,6 @@
1
1
  import { join } from "node:path";
2
2
  import { hasWellKnownSubnet, normalizeIP } from "ip-utilties";
3
+ import { default_attribute, hostname_attribute } from "pacc";
3
4
  import { Base, cidrAddresses } from "pmcf";
4
5
  import {
5
6
  networkProperties,
@@ -39,12 +40,12 @@ export const NetworkInterfaceTypeDefinition = {
39
40
  ...networkAddressProperties,
40
41
 
41
42
  services: { type: "service", collection: true, writeable: true },
42
- hostName: { type: "string", collection: false, writeable: true },
43
- ipAddresses: { type: "string", collection: true, writeable: true },
43
+ hostName: { ...hostname_attribute, writeable: true },
44
+ ipAddresses: { ...default_attribute, writeable: true },
44
45
 
45
- hwaddr: { type: "string", collection: false, writeable: true },
46
+ hwaddr: { ...default_attribute, writeable: true },
46
47
  network: { type: "network", collection: false, writeable: true },
47
- destination: { type: "string", collection: false, writeable: true }
48
+ destination: { ...default_attribute, writeable: true }
48
49
  }
49
50
  };
50
51
 
@@ -1,40 +1,37 @@
1
+ import { default_attribute, hostname_attribute, boolean_attribute } from "pacc";
2
+
1
3
  export const networkProperties = {
2
4
  scope: {
3
- type: "string",
4
- collection: false,
5
+ ...default_attribute,
5
6
  writeable: true,
6
7
  values: ["global", "site", "link", "host"],
7
8
  default: "global"
8
9
  },
9
10
  class: {
10
- type: "string",
11
- collection: false,
11
+ ...default_attribute,
12
12
  writeable: true,
13
13
  values: ["10GBASE-T", "1000BASE-T", "100BASE-T", "10BASE-T"]
14
14
  },
15
15
  kind: {
16
- type: "string",
17
- collection: false,
16
+ ...default_attribute,
18
17
  writeable: true,
19
18
  values: ["loopback", "ethernet", "wlan", "wireguard", "fiber", "dsl"]
20
19
  },
21
- ssid: { type: "string", collection: false, writeable: true },
22
- psk: { type: "string", collection: false, writeable: true },
20
+ ssid: { ...default_attribute, writeable: true },
21
+ psk: { ...default_attribute, writeable: true },
23
22
  metric: { type: "number", collection: false, writeable: true, default: 1004 },
24
23
  mtu: { type: "number", collection: false, writeable: true, default: 1500 },
25
24
  gateway: { type: "host", collection: false, writeable: true },
26
25
  multicastDNS: {
27
- type: "boolean",
28
- collection: false,
29
- writeable: true,
30
- default: false
26
+ ...boolean_attribute,
27
+ writeable: true
31
28
  }
32
29
  };
33
30
 
34
31
  export const networkAddressProperties = {
35
- hostName: { type: "string", collection: false, writeable: true },
36
- cidrAddresses: { type: "string", collection: true, writeable: false },
37
- cidrAddress: { type: "string", collection: false, writeable: false },
38
- addresses: { type: "string", collection: true, writeable: false },
39
- address: { type: "string", collection: false, writeable: false }
32
+ hostName: { ...hostname_attribute, writeable: true },
33
+ cidrAddresses: { ...default_attribute, collection: true, writeable: false },
34
+ cidrAddress: { ...default_attribute, writeable: false },
35
+ addresses: { ...default_attribute, collection: true, writeable: false },
36
+ address: { ...default_attribute, writeable: false }
40
37
  };
package/src/owner.mjs CHANGED
@@ -17,10 +17,10 @@ const OwnerTypeDefinition = {
17
17
  subnets: { type: Subnet.typeDefinition, collection: true, writeable: true },
18
18
  country: { ...default_attribute, writeable: true },
19
19
  domain: { ...default_attribute, writeable: true },
20
- domains: { type: "string", collection: true, writeable: true },
21
- timezone: { type: "string", collection: false, writeable: true },
22
- architectures: { type: "string", collection: true, writeable: true },
23
- locales: { type: "string", collection: true, writeable: true },
20
+ domains: { ...default_attribute, collection: true, writeable: true },
21
+ timezone: { ...default_attribute, writeable: true },
22
+ architectures: { ...default_attribute, collection: true, writeable: true },
23
+ locales: { ...default_attribute, collection: true, writeable: true },
24
24
  administratorEmail: { ...email_attribute, writeable: true }
25
25
  }
26
26
  };
package/src/service.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import { default_attribute, boolean_attribute } from "pacc";
1
2
  import {
2
3
  Base,
3
4
  Host,
@@ -21,18 +22,15 @@ import {
21
22
  export const endpointProperties = {
22
23
  port: { type: "number", collection: false, writeable: true },
23
24
  protocol: {
24
- type: "string",
25
- collection: false,
25
+ ...default_attribute,
26
26
  writeable: true,
27
27
  values: ["tcp", "udp"]
28
28
  },
29
- type: { type: "string", collection: false, writeable: true },
30
- types: { type: "string", collection: true, writeable: false },
29
+ type: { ...default_attribute, writeable: true },
30
+ types: { ...default_attribute, collection: true },
31
31
  tls: {
32
- type: "boolean",
33
- collection: false,
34
- writeable: false,
35
- default: false
32
+ ...boolean_attribute,
33
+ writeable: false
36
34
  }
37
35
  };
38
36
 
@@ -64,7 +62,7 @@ export const ServiceTypeDefinition = {
64
62
  properties: {
65
63
  ...networkAddressProperties,
66
64
  ...endpointProperties,
67
- alias: { type: "string", collection: false, writeable: true },
65
+ alias: { ...default_attribute, writeable: true },
68
66
  weight: { type: "number", collection: false, writeable: true, default: 1 },
69
67
  systemd: { type: "string", collection: true, writeable: true }
70
68
  }
@@ -189,24 +189,68 @@ export class Cluster extends Host {
189
189
  env?: string[] | string;
190
190
  };
191
191
  domains: {
192
- type: string;
193
192
  collection: boolean;
194
193
  writeable: boolean;
194
+ type: string;
195
+ isKey: boolean;
196
+ writable: boolean;
197
+ mandatory: boolean;
198
+ private?: boolean;
199
+ depends?: string;
200
+ additionalAttributes: string[];
201
+ description?: string;
202
+ default?: any;
203
+ set?: Function;
204
+ get?: Function;
205
+ env?: string[] | string;
195
206
  };
196
207
  timezone: {
208
+ writeable: boolean;
197
209
  type: string;
210
+ isKey: boolean;
211
+ writable: boolean;
212
+ mandatory: boolean;
198
213
  collection: boolean;
199
- writeable: boolean;
214
+ private?: boolean;
215
+ depends?: string;
216
+ additionalAttributes: string[];
217
+ description?: string;
218
+ default?: any;
219
+ set?: Function;
220
+ get?: Function;
221
+ env?: string[] | string;
200
222
  };
201
223
  architectures: {
202
- type: string;
203
224
  collection: boolean;
204
225
  writeable: boolean;
226
+ type: string;
227
+ isKey: boolean;
228
+ writable: boolean;
229
+ mandatory: boolean;
230
+ private?: boolean;
231
+ depends?: string;
232
+ additionalAttributes: string[];
233
+ description?: string;
234
+ default?: any;
235
+ set?: Function;
236
+ get?: Function;
237
+ env?: string[] | string;
205
238
  };
206
239
  locales: {
207
- type: string;
208
240
  collection: boolean;
209
241
  writeable: boolean;
242
+ type: string;
243
+ isKey: boolean;
244
+ writable: boolean;
245
+ mandatory: boolean;
246
+ private?: boolean;
247
+ depends?: string;
248
+ additionalAttributes: string[];
249
+ description?: string;
250
+ default?: any;
251
+ set?: Function;
252
+ get?: Function;
253
+ env?: string[] | string;
210
254
  };
211
255
  administratorEmail: {
212
256
  writeable: boolean;
@@ -498,19 +542,52 @@ export class Cluster extends Host {
498
542
  env?: string[] | string;
499
543
  };
500
544
  replaces: {
501
- type: string;
502
545
  collection: boolean;
503
546
  writeable: boolean;
547
+ type: string;
548
+ isKey: boolean;
549
+ writable: boolean;
550
+ mandatory: boolean;
551
+ private?: boolean;
552
+ depends?: string;
553
+ additionalAttributes: string[];
554
+ description?: string;
555
+ default?: any;
556
+ set?: Function;
557
+ get?: Function;
558
+ env?: string[] | string;
504
559
  };
505
560
  depends: {
506
- type: string;
507
561
  collection: boolean;
508
562
  writeable: boolean;
563
+ type: string;
564
+ isKey: boolean;
565
+ writable: boolean;
566
+ mandatory: boolean;
567
+ private?: boolean;
568
+ depends?: string;
569
+ additionalAttributes: string[];
570
+ description?: string;
571
+ default?: any;
572
+ set?: Function;
573
+ get?: Function;
574
+ env?: string[] | string;
509
575
  };
510
576
  provides: {
511
- type: string;
512
577
  collection: boolean;
513
578
  writeable: boolean;
579
+ type: string;
580
+ isKey: boolean;
581
+ writable: boolean;
582
+ mandatory: boolean;
583
+ private?: boolean;
584
+ depends?: string;
585
+ additionalAttributes: string[];
586
+ description?: string;
587
+ default?: any;
588
+ set?: Function;
589
+ get?: Function;
590
+ env?: string[] | string;
514
591
  };
515
592
  extends: {
516
593
  type: string;
@@ -518,9 +595,20 @@ export class Cluster extends Host {
518
595
  writeable: boolean;
519
596
  };
520
597
  model: {
521
- type: string;
522
598
  collection: boolean;
523
599
  writeable: boolean;
600
+ type: string;
601
+ isKey: boolean;
602
+ writable: boolean;
603
+ mandatory: boolean;
604
+ private?: boolean;
605
+ depends?: string;
606
+ additionalAttributes: string[];
607
+ description?: string;
608
+ default?: any;
609
+ set?: Function;
610
+ get?: Function;
611
+ env?: string[] | string;
524
612
  };
525
613
  isModel: {
526
614
  type: string;
@@ -528,29 +616,84 @@ export class Cluster extends Host {
528
616
  writeable: boolean;
529
617
  };
530
618
  hostName: {
619
+ writeable: boolean;
531
620
  type: string;
621
+ isKey: boolean;
622
+ writable: boolean;
623
+ mandatory: boolean;
532
624
  collection: boolean;
533
- writeable: boolean;
625
+ private?: boolean;
626
+ depends?: string;
627
+ additionalAttributes: string[];
628
+ description?: string;
629
+ default?: any;
630
+ set?: Function;
631
+ get?: Function;
632
+ env?: string[] | string;
534
633
  };
535
634
  cidrAddresses: {
536
- type: string;
537
635
  collection: boolean;
538
636
  writeable: boolean;
637
+ type: string;
638
+ isKey: boolean;
639
+ writable: boolean;
640
+ mandatory: boolean;
641
+ private?: boolean;
642
+ depends?: string;
643
+ additionalAttributes: string[];
644
+ description?: string;
645
+ default?: any;
646
+ set?: Function;
647
+ get?: Function;
648
+ env?: string[] | string;
539
649
  };
540
650
  cidrAddress: {
651
+ writeable: boolean;
541
652
  type: string;
653
+ isKey: boolean;
654
+ writable: boolean;
655
+ mandatory: boolean;
542
656
  collection: boolean;
543
- writeable: boolean;
657
+ private?: boolean;
658
+ depends?: string;
659
+ additionalAttributes: string[];
660
+ description?: string;
661
+ default?: any;
662
+ set?: Function;
663
+ get?: Function;
664
+ env?: string[] | string;
544
665
  };
545
666
  addresses: {
546
- type: string;
547
667
  collection: boolean;
548
668
  writeable: boolean;
669
+ type: string;
670
+ isKey: boolean;
671
+ writable: boolean;
672
+ mandatory: boolean;
673
+ private?: boolean;
674
+ depends?: string;
675
+ additionalAttributes: string[];
676
+ description?: string;
677
+ default?: any;
678
+ set?: Function;
679
+ get?: Function;
680
+ env?: string[] | string;
549
681
  };
550
682
  address: {
683
+ writeable: boolean;
551
684
  type: string;
685
+ isKey: boolean;
686
+ writable: boolean;
687
+ mandatory: boolean;
552
688
  collection: boolean;
553
- writeable: boolean;
689
+ private?: boolean;
690
+ depends?: string;
691
+ additionalAttributes: string[];
692
+ description?: string;
693
+ default?: any;
694
+ set?: Function;
695
+ get?: Function;
696
+ env?: string[] | string;
554
697
  };
555
698
  };
556
699
  };
@@ -120,9 +120,20 @@ export class ExtraSourceService extends Service {
120
120
  factoryFor(owner: any, value: any): any;
121
121
  properties: {
122
122
  alias: {
123
+ writeable: boolean;
123
124
  type: string;
125
+ isKey: boolean;
126
+ writable: boolean;
127
+ mandatory: boolean;
124
128
  collection: boolean;
125
- writeable: boolean;
129
+ private?: boolean;
130
+ depends?: string;
131
+ additionalAttributes: string[];
132
+ description?: string;
133
+ default?: any;
134
+ set?: Function;
135
+ get?: Function;
136
+ env?: string[] | string;
126
137
  };
127
138
  weight: {
128
139
  type: string;
@@ -141,51 +152,148 @@ export class ExtraSourceService extends Service {
141
152
  writeable: boolean;
142
153
  };
143
154
  protocol: {
144
- type: string;
145
- collection: boolean;
146
155
  writeable: boolean;
147
156
  values: string[];
157
+ type: string;
158
+ isKey: boolean;
159
+ writable: boolean;
160
+ mandatory: boolean;
161
+ collection: boolean;
162
+ private?: boolean;
163
+ depends?: string;
164
+ additionalAttributes: string[];
165
+ description?: string;
166
+ default?: any;
167
+ set?: Function;
168
+ get?: Function;
169
+ env?: string[] | string;
148
170
  };
149
171
  type: {
172
+ writeable: boolean;
150
173
  type: string;
174
+ isKey: boolean;
175
+ writable: boolean;
176
+ mandatory: boolean;
151
177
  collection: boolean;
152
- writeable: boolean;
178
+ private?: boolean;
179
+ depends?: string;
180
+ additionalAttributes: string[];
181
+ description?: string;
182
+ default?: any;
183
+ set?: Function;
184
+ get?: Function;
185
+ env?: string[] | string;
153
186
  };
154
187
  types: {
155
- type: string;
156
188
  collection: boolean;
157
- writeable: boolean;
189
+ type: string;
190
+ isKey: boolean;
191
+ writable: boolean;
192
+ mandatory: boolean;
193
+ private?: boolean;
194
+ depends?: string;
195
+ additionalAttributes: string[];
196
+ description?: string;
197
+ default?: any;
198
+ set?: Function;
199
+ get?: Function;
200
+ env?: string[] | string;
158
201
  };
159
202
  tls: {
203
+ writeable: boolean;
160
204
  type: string;
205
+ isKey: boolean;
206
+ writable: boolean;
207
+ mandatory: boolean;
161
208
  collection: boolean;
162
- writeable: boolean;
163
- default: boolean;
209
+ private?: boolean;
210
+ depends?: string;
211
+ additionalAttributes: string[];
212
+ description?: string;
213
+ default?: any;
214
+ set?: Function;
215
+ get?: Function;
216
+ env?: string[] | string;
164
217
  };
165
218
  hostName: {
219
+ writeable: boolean;
166
220
  type: string;
221
+ isKey: boolean;
222
+ writable: boolean;
223
+ mandatory: boolean;
167
224
  collection: boolean;
168
- writeable: boolean;
225
+ private?: boolean;
226
+ depends?: string;
227
+ additionalAttributes: string[];
228
+ description?: string;
229
+ default?: any;
230
+ set?: Function;
231
+ get?: Function;
232
+ env?: string[] | string;
169
233
  };
170
234
  cidrAddresses: {
171
- type: string;
172
235
  collection: boolean;
173
236
  writeable: boolean;
237
+ type: string;
238
+ isKey: boolean;
239
+ writable: boolean;
240
+ mandatory: boolean;
241
+ private?: boolean;
242
+ depends?: string;
243
+ additionalAttributes: string[];
244
+ description?: string;
245
+ default?: any;
246
+ set?: Function;
247
+ get?: Function;
248
+ env?: string[] | string;
174
249
  };
175
250
  cidrAddress: {
251
+ writeable: boolean;
176
252
  type: string;
253
+ isKey: boolean;
254
+ writable: boolean;
255
+ mandatory: boolean;
177
256
  collection: boolean;
178
- writeable: boolean;
257
+ private?: boolean;
258
+ depends?: string;
259
+ additionalAttributes: string[];
260
+ description?: string;
261
+ default?: any;
262
+ set?: Function;
263
+ get?: Function;
264
+ env?: string[] | string;
179
265
  };
180
266
  addresses: {
181
- type: string;
182
267
  collection: boolean;
183
268
  writeable: boolean;
269
+ type: string;
270
+ isKey: boolean;
271
+ writable: boolean;
272
+ mandatory: boolean;
273
+ private?: boolean;
274
+ depends?: string;
275
+ additionalAttributes: string[];
276
+ description?: string;
277
+ default?: any;
278
+ set?: Function;
279
+ get?: Function;
280
+ env?: string[] | string;
184
281
  };
185
282
  address: {
283
+ writeable: boolean;
186
284
  type: string;
285
+ isKey: boolean;
286
+ writable: boolean;
287
+ mandatory: boolean;
187
288
  collection: boolean;
188
- writeable: boolean;
289
+ private?: boolean;
290
+ depends?: string;
291
+ additionalAttributes: string[];
292
+ description?: string;
293
+ default?: any;
294
+ set?: Function;
295
+ get?: Function;
296
+ env?: string[] | string;
189
297
  };
190
298
  };
191
299
  };