pacc 4.0.0 → 4.1.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/README.md +24 -19
- package/package.json +1 -1
- package/src/common-attributes.mjs +1 -3
- package/types/common-attributes.d.mts +0 -5
package/README.md
CHANGED
|
@@ -34,13 +34,15 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
34
34
|
* [AttributeDefinition](#attributedefinition)
|
|
35
35
|
* [Properties](#properties)
|
|
36
36
|
* [default\_attribute](#default_attribute)
|
|
37
|
+
* [default\_attribute](#default_attribute-1)
|
|
37
38
|
* [name\_attribute](#name_attribute)
|
|
38
39
|
* [email\_attribute](#email_attribute)
|
|
39
40
|
* [description\_attribute](#description_attribute)
|
|
40
|
-
* [type\_attribute](#type_attribute)
|
|
41
41
|
* [state\_attribute](#state_attribute)
|
|
42
|
-
* [boolean\_attribute](#
|
|
43
|
-
* [boolean\
|
|
42
|
+
* [boolean\_attribute\_writeable\_true](#boolean_attribute_writeable_true)
|
|
43
|
+
* [boolean\_attribute\_writeable\_true](#boolean_attribute_writeable_true-1)
|
|
44
|
+
* [boolean\_attribute\_writeable\_false](#boolean_attribute_writeable_false)
|
|
45
|
+
* [boolean\_attribute\_false](#boolean_attribute_false)
|
|
44
46
|
* [uuid\_attribute](#uuid_attribute)
|
|
45
47
|
* [empty\_attribute](#empty_attribute)
|
|
46
48
|
* [secret\_attribute](#secret_attribute)
|
|
@@ -51,8 +53,8 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
51
53
|
* [private\_key\_attribute](#private_key_attribute)
|
|
52
54
|
* [public\_key\_attribute](#public_key_attribute)
|
|
53
55
|
* [integer\_attribute](#integer_attribute)
|
|
54
|
-
* [
|
|
55
|
-
* [
|
|
56
|
+
* [integer\_attribute](#integer_attribute-1)
|
|
57
|
+
* [integer\_attribute](#integer_attribute-2)
|
|
56
58
|
* [url\_attribute](#url_attribute)
|
|
57
59
|
* [hostname\_attribute](#hostname_attribute)
|
|
58
60
|
* [port\_attribute](#port_attribute)
|
|
@@ -61,7 +63,6 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
61
63
|
* [title\_attribute](#title_attribute)
|
|
62
64
|
* [priority\_attribute](#priority_attribute)
|
|
63
65
|
* [timeout\_attribute](#timeout_attribute)
|
|
64
|
-
* [active\_attribute](#active_attribute)
|
|
65
66
|
* [language\_attribute](#language_attribute)
|
|
66
67
|
* [filter](#filter)
|
|
67
68
|
* [Parameters](#parameters-2)
|
|
@@ -158,6 +159,10 @@ Common attribute properties.
|
|
|
158
159
|
|
|
159
160
|
Type: [AttributeDefinition](#attributedefinition)
|
|
160
161
|
|
|
162
|
+
## default\_attribute
|
|
163
|
+
|
|
164
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
165
|
+
|
|
161
166
|
## name\_attribute
|
|
162
167
|
|
|
163
168
|
Type: [AttributeDefinition](#attributedefinition)
|
|
@@ -172,19 +177,23 @@ The description of the object content.
|
|
|
172
177
|
|
|
173
178
|
Type: [AttributeDefinition](#attributedefinition)
|
|
174
179
|
|
|
175
|
-
##
|
|
180
|
+
## state\_attribute
|
|
176
181
|
|
|
177
182
|
Type: [AttributeDefinition](#attributedefinition)
|
|
178
183
|
|
|
179
|
-
##
|
|
184
|
+
## boolean\_attribute\_writeable\_true
|
|
185
|
+
|
|
186
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
187
|
+
|
|
188
|
+
## boolean\_attribute\_writeable\_true
|
|
180
189
|
|
|
181
190
|
Type: [AttributeDefinition](#attributedefinition)
|
|
182
191
|
|
|
183
|
-
## boolean\_attribute
|
|
192
|
+
## boolean\_attribute\_writeable\_false
|
|
184
193
|
|
|
185
194
|
Type: [AttributeDefinition](#attributedefinition)
|
|
186
195
|
|
|
187
|
-
## boolean\
|
|
196
|
+
## boolean\_attribute\_false
|
|
188
197
|
|
|
189
198
|
Type: [AttributeDefinition](#attributedefinition)
|
|
190
199
|
|
|
@@ -228,11 +237,11 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
228
237
|
|
|
229
238
|
Type: [AttributeDefinition](#attributedefinition)
|
|
230
239
|
|
|
231
|
-
##
|
|
240
|
+
## integer\_attribute
|
|
232
241
|
|
|
233
242
|
Type: [AttributeDefinition](#attributedefinition)
|
|
234
243
|
|
|
235
|
-
##
|
|
244
|
+
## integer\_attribute
|
|
236
245
|
|
|
237
246
|
Type: [AttributeDefinition](#attributedefinition)
|
|
238
247
|
|
|
@@ -250,19 +259,19 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
250
259
|
|
|
251
260
|
## id\_attribute
|
|
252
261
|
|
|
253
|
-
Unique id within
|
|
262
|
+
Unique id within.
|
|
254
263
|
|
|
255
264
|
Type: [AttributeDefinition](#attributedefinition)
|
|
256
265
|
|
|
257
266
|
## body\_attribute
|
|
258
267
|
|
|
259
|
-
The body text
|
|
268
|
+
The body text.
|
|
260
269
|
|
|
261
270
|
Type: [AttributeDefinition](#attributedefinition)
|
|
262
271
|
|
|
263
272
|
## title\_attribute
|
|
264
273
|
|
|
265
|
-
The one line description
|
|
274
|
+
The one line description.
|
|
266
275
|
|
|
267
276
|
Type: [AttributeDefinition](#attributedefinition)
|
|
268
277
|
|
|
@@ -277,10 +286,6 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
277
286
|
|
|
278
287
|
Type: [AttributeDefinition](#attributedefinition)
|
|
279
288
|
|
|
280
|
-
## active\_attribute
|
|
281
|
-
|
|
282
|
-
Type: [AttributeDefinition](#attributedefinition)
|
|
283
|
-
|
|
284
289
|
## language\_attribute
|
|
285
290
|
|
|
286
291
|
Type: [AttributeDefinition](#attributedefinition)
|
package/package.json
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
* @property {boolean} collection
|
|
9
9
|
* @property {boolean} [private] should the value be shown
|
|
10
10
|
* @property {string} [depends] name of an attribute we depend on
|
|
11
|
-
* @property {string[]} additionalAttributes extra attributes that are present in case our attribute is set
|
|
12
11
|
* @property {string} [description] human readable
|
|
13
12
|
* @property {any} [default] the default value
|
|
14
13
|
* @property {Function} [set] set the value
|
|
@@ -26,8 +25,7 @@ export const default_attribute = {
|
|
|
26
25
|
mandatory: false,
|
|
27
26
|
collection: false,
|
|
28
27
|
private: false,
|
|
29
|
-
isKey: false
|
|
30
|
-
additionalAttributes: []
|
|
28
|
+
isKey: false
|
|
31
29
|
};
|
|
32
30
|
|
|
33
31
|
/**
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
* @property {boolean} collection
|
|
9
9
|
* @property {boolean} [private] should the value be shown
|
|
10
10
|
* @property {string} [depends] name of an attribute we depend on
|
|
11
|
-
* @property {string[]} additionalAttributes extra attributes that are present in case our attribute is set
|
|
12
11
|
* @property {string} [description] human readable
|
|
13
12
|
* @property {any} [default] the default value
|
|
14
13
|
* @property {Function} [set] set the value
|
|
@@ -144,10 +143,6 @@ export type AttributeDefinition = {
|
|
|
144
143
|
* name of an attribute we depend on
|
|
145
144
|
*/
|
|
146
145
|
depends?: string;
|
|
147
|
-
/**
|
|
148
|
-
* extra attributes that are present in case our attribute is set
|
|
149
|
-
*/
|
|
150
|
-
additionalAttributes: string[];
|
|
151
146
|
/**
|
|
152
147
|
* human readable
|
|
153
148
|
*/
|