pmcf 4.30.5 → 4.30.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "4.30.5",
3
+ "version": "4.30.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -54,7 +54,7 @@
54
54
  "content-entry-transform": "^1.6.9",
55
55
  "ip-utilties": "^3.1.1",
56
56
  "npm-pkgbuild": "^20.7.6",
57
- "pacc": "^9.4.1",
57
+ "pacc": "^9.4.2",
58
58
  "package-directory": "^8.2.0"
59
59
  },
60
60
  "devDependencies": {
@@ -3,7 +3,7 @@ import {
3
3
  string_collection_attribute_writable,
4
4
  string_attribute_writable,
5
5
  integer_attribute_writable,
6
- hostname_attribute,
6
+ hostname_attribute as hostname_attribute_base,
7
7
  boolean_attribute_writable
8
8
  } from "pacc";
9
9
 
@@ -11,37 +11,52 @@ export const networkAddressType = "network|host|network_interface";
11
11
 
12
12
  export const networks_attribute = {
13
13
  ...default_attribute_writable,
14
+ name: "networks",
14
15
  type: "network",
15
16
  collection: true
16
17
  };
17
18
 
19
+ export const psk_attribute = { ...string_attribute_writable, name: "psk" };
20
+ export const ssid_attribute = { ...string_attribute_writable, name: "ssid" };
21
+ export const hostname_attribute = {
22
+ ...hostname_attribute_base,
23
+ name: "hostName",
24
+ writable: true
25
+ };
26
+
18
27
  export const networkAttributes = {
19
28
  scope: {
20
29
  ...string_attribute_writable,
30
+ name: "scope",
21
31
  values: ["global", "site", "link", "host"]
22
32
  // default: "global"
23
33
  },
24
34
  class: {
25
35
  ...string_attribute_writable,
36
+ name: "class",
26
37
  values: ["10GBASE-T", "1000BASE-T", "100BASE-T", "10BASE-T"]
27
38
  },
28
39
  kind: {
29
40
  ...string_attribute_writable,
41
+ name: "kind",
30
42
  values: ["loopback", "ethernet", "wlan", "wireguard", "fiber", "dsl"]
31
43
  },
32
- ssid: string_attribute_writable,
33
- psk: string_attribute_writable,
34
- secretName: string_attribute_writable,
35
- metric: { ...integer_attribute_writable /*default: 1004*/ },
36
- mtu: { ...integer_attribute_writable, default: 1500 },
37
- gateway: { ...default_attribute_writable, type: "host" },
38
- multicastDNS: boolean_attribute_writable
44
+ ssid: ssid_attribute,
45
+ psk: psk_attribute,
46
+ secretName: { ...string_attribute_writable, name: "secretName" },
47
+ metric: { ...integer_attribute_writable, name: "metric" /*default: 1004*/ },
48
+ mtu: { ...integer_attribute_writable, name: "mtu", default: 1500 },
49
+ gateway: { ...default_attribute_writable, name: "gateway", type: "host" },
50
+ multicastDNS: { ...boolean_attribute_writable, name: "multicastDNS" }
39
51
  };
40
52
 
41
53
  export const networkAddressAttributes = {
42
- hostName: { ...hostname_attribute, writable: true },
43
- cidrAddresses: string_collection_attribute_writable,
44
- cidrAddress: string_attribute_writable,
45
- addresses: string_collection_attribute_writable,
46
- address: string_attribute_writable
54
+ hostName: hostname_attribute,
55
+ cidrAddresses: {
56
+ ...string_collection_attribute_writable,
57
+ name: "cidrAddresses"
58
+ },
59
+ cidrAddress: { ...string_attribute_writable, name: "cidrAddress" },
60
+ addresses: { ...string_collection_attribute_writable, name: "addresses" },
61
+ address: { ...string_attribute_writable, name: "address" }
47
62
  };