pacc 3.13.2 → 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 +90 -85
- package/package.json +1 -1
- package/src/common-attributes.mjs +30 -23
- package/types/common-attributes.d.mts +8 -24
package/README.md
CHANGED
|
@@ -27,25 +27,22 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
27
27
|
|
|
28
28
|
### Table of Contents
|
|
29
29
|
|
|
30
|
-
* [
|
|
31
|
-
* [tokens](#tokens-1)
|
|
30
|
+
* [prepareAttributesDefinitions](#prepareattributesdefinitions)
|
|
32
31
|
* [Parameters](#parameters)
|
|
33
|
-
* [
|
|
32
|
+
* [mergeAttributeDefinitions](#mergeattributedefinitions)
|
|
34
33
|
* [Parameters](#parameters-1)
|
|
35
|
-
* [getAttribute](#getattribute)
|
|
36
|
-
* [Parameters](#parameters-2)
|
|
37
|
-
* [getAttributeAndOperator](#getattributeandoperator)
|
|
38
|
-
* [Parameters](#parameters-3)
|
|
39
34
|
* [AttributeDefinition](#attributedefinition)
|
|
40
35
|
* [Properties](#properties)
|
|
41
36
|
* [default\_attribute](#default_attribute)
|
|
37
|
+
* [default\_attribute](#default_attribute-1)
|
|
42
38
|
* [name\_attribute](#name_attribute)
|
|
43
39
|
* [email\_attribute](#email_attribute)
|
|
44
40
|
* [description\_attribute](#description_attribute)
|
|
45
|
-
* [type\_attribute](#type_attribute)
|
|
46
41
|
* [state\_attribute](#state_attribute)
|
|
47
|
-
* [boolean\_attribute](#
|
|
48
|
-
* [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)
|
|
49
46
|
* [uuid\_attribute](#uuid_attribute)
|
|
50
47
|
* [empty\_attribute](#empty_attribute)
|
|
51
48
|
* [secret\_attribute](#secret_attribute)
|
|
@@ -56,8 +53,8 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
56
53
|
* [private\_key\_attribute](#private_key_attribute)
|
|
57
54
|
* [public\_key\_attribute](#public_key_attribute)
|
|
58
55
|
* [integer\_attribute](#integer_attribute)
|
|
59
|
-
* [
|
|
60
|
-
* [
|
|
56
|
+
* [integer\_attribute](#integer_attribute-1)
|
|
57
|
+
* [integer\_attribute](#integer_attribute-2)
|
|
61
58
|
* [url\_attribute](#url_attribute)
|
|
62
59
|
* [hostname\_attribute](#hostname_attribute)
|
|
63
60
|
* [port\_attribute](#port_attribute)
|
|
@@ -66,17 +63,21 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
66
63
|
* [title\_attribute](#title_attribute)
|
|
67
64
|
* [priority\_attribute](#priority_attribute)
|
|
68
65
|
* [timeout\_attribute](#timeout_attribute)
|
|
69
|
-
* [active\_attribute](#active_attribute)
|
|
70
66
|
* [language\_attribute](#language_attribute)
|
|
71
67
|
* [filter](#filter)
|
|
68
|
+
* [Parameters](#parameters-2)
|
|
69
|
+
* [setAttributes](#setattributes)
|
|
70
|
+
* [Parameters](#parameters-3)
|
|
71
|
+
* [getAttributes](#getattributes)
|
|
72
72
|
* [Parameters](#parameters-4)
|
|
73
|
-
* [
|
|
73
|
+
* [tokens](#tokens)
|
|
74
|
+
* [tokens](#tokens-1)
|
|
74
75
|
* [Parameters](#parameters-5)
|
|
75
|
-
* [
|
|
76
|
+
* [setAttribute](#setattribute)
|
|
76
77
|
* [Parameters](#parameters-6)
|
|
77
|
-
* [
|
|
78
|
+
* [getAttribute](#getattribute)
|
|
78
79
|
* [Parameters](#parameters-7)
|
|
79
|
-
* [
|
|
80
|
+
* [getAttributeAndOperator](#getattributeandoperator)
|
|
80
81
|
* [Parameters](#parameters-8)
|
|
81
82
|
* [lookup](#lookup)
|
|
82
83
|
* [Token](#token)
|
|
@@ -110,50 +111,27 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
110
111
|
* [BAR](#bar)
|
|
111
112
|
* [DOUBLE\_BAR](#double_bar)
|
|
112
113
|
|
|
113
|
-
##
|
|
114
|
-
|
|
115
|
-
## tokens
|
|
116
|
-
|
|
117
|
-
Split property path into tokens
|
|
118
|
-
|
|
119
|
-
### Parameters
|
|
120
|
-
|
|
121
|
-
* `string` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
122
|
-
|
|
123
|
-
## setAttribute
|
|
124
|
-
|
|
125
|
-
Set object attribute.
|
|
126
|
-
The name may be a property path like 'a.b.c'.
|
|
127
|
-
|
|
128
|
-
### Parameters
|
|
129
|
-
|
|
130
|
-
* `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
131
|
-
* `expression` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
132
|
-
* `value` **any** 
|
|
133
|
-
|
|
134
|
-
## getAttribute
|
|
114
|
+
## prepareAttributesDefinitions
|
|
135
115
|
|
|
136
|
-
|
|
137
|
-
The name may be a property path like 'a.b.c' or a\[2]
|
|
116
|
+
Create attributes from its definition.
|
|
138
117
|
|
|
139
118
|
### Parameters
|
|
140
119
|
|
|
141
|
-
* `
|
|
142
|
-
* `
|
|
120
|
+
* `newDefinitions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
121
|
+
* `presentDefinitions` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** optional merg in attributes
|
|
143
122
|
|
|
144
|
-
Returns **
|
|
123
|
+
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** attributes
|
|
145
124
|
|
|
146
|
-
##
|
|
125
|
+
## mergeAttributeDefinitions
|
|
147
126
|
|
|
148
|
-
|
|
149
|
-
The name may be a property path like 'a.b.c <='.
|
|
127
|
+
Merge attribute definitions.
|
|
150
128
|
|
|
151
129
|
### Parameters
|
|
152
130
|
|
|
153
|
-
* `
|
|
154
|
-
* `
|
|
131
|
+
* `dest` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** attribute definitions to be used also the merge target
|
|
132
|
+
* `atts` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** attribute definitions to be used
|
|
155
133
|
|
|
156
|
-
Returns
|
|
134
|
+
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** merged definitions (dest)
|
|
157
135
|
|
|
158
136
|
## AttributeDefinition
|
|
159
137
|
|
|
@@ -181,6 +159,10 @@ Common attribute properties.
|
|
|
181
159
|
|
|
182
160
|
Type: [AttributeDefinition](#attributedefinition)
|
|
183
161
|
|
|
162
|
+
## default\_attribute
|
|
163
|
+
|
|
164
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
165
|
+
|
|
184
166
|
## name\_attribute
|
|
185
167
|
|
|
186
168
|
Type: [AttributeDefinition](#attributedefinition)
|
|
@@ -195,19 +177,23 @@ The description of the object content.
|
|
|
195
177
|
|
|
196
178
|
Type: [AttributeDefinition](#attributedefinition)
|
|
197
179
|
|
|
198
|
-
##
|
|
180
|
+
## state\_attribute
|
|
199
181
|
|
|
200
182
|
Type: [AttributeDefinition](#attributedefinition)
|
|
201
183
|
|
|
202
|
-
##
|
|
184
|
+
## boolean\_attribute\_writeable\_true
|
|
185
|
+
|
|
186
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
187
|
+
|
|
188
|
+
## boolean\_attribute\_writeable\_true
|
|
203
189
|
|
|
204
190
|
Type: [AttributeDefinition](#attributedefinition)
|
|
205
191
|
|
|
206
|
-
## boolean\_attribute
|
|
192
|
+
## boolean\_attribute\_writeable\_false
|
|
207
193
|
|
|
208
194
|
Type: [AttributeDefinition](#attributedefinition)
|
|
209
195
|
|
|
210
|
-
## boolean\
|
|
196
|
+
## boolean\_attribute\_false
|
|
211
197
|
|
|
212
198
|
Type: [AttributeDefinition](#attributedefinition)
|
|
213
199
|
|
|
@@ -251,11 +237,11 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
251
237
|
|
|
252
238
|
Type: [AttributeDefinition](#attributedefinition)
|
|
253
239
|
|
|
254
|
-
##
|
|
240
|
+
## integer\_attribute
|
|
255
241
|
|
|
256
242
|
Type: [AttributeDefinition](#attributedefinition)
|
|
257
243
|
|
|
258
|
-
##
|
|
244
|
+
## integer\_attribute
|
|
259
245
|
|
|
260
246
|
Type: [AttributeDefinition](#attributedefinition)
|
|
261
247
|
|
|
@@ -273,19 +259,19 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
273
259
|
|
|
274
260
|
## id\_attribute
|
|
275
261
|
|
|
276
|
-
Unique id within
|
|
262
|
+
Unique id within.
|
|
277
263
|
|
|
278
264
|
Type: [AttributeDefinition](#attributedefinition)
|
|
279
265
|
|
|
280
266
|
## body\_attribute
|
|
281
267
|
|
|
282
|
-
The body text
|
|
268
|
+
The body text.
|
|
283
269
|
|
|
284
270
|
Type: [AttributeDefinition](#attributedefinition)
|
|
285
271
|
|
|
286
272
|
## title\_attribute
|
|
287
273
|
|
|
288
|
-
The one line description
|
|
274
|
+
The one line description.
|
|
289
275
|
|
|
290
276
|
Type: [AttributeDefinition](#attributedefinition)
|
|
291
277
|
|
|
@@ -300,10 +286,6 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
300
286
|
|
|
301
287
|
Type: [AttributeDefinition](#attributedefinition)
|
|
302
288
|
|
|
303
|
-
## active\_attribute
|
|
304
|
-
|
|
305
|
-
Type: [AttributeDefinition](#attributedefinition)
|
|
306
|
-
|
|
307
289
|
## language\_attribute
|
|
308
290
|
|
|
309
291
|
Type: [AttributeDefinition](#attributedefinition)
|
|
@@ -318,28 +300,6 @@ Generate filter function.
|
|
|
318
300
|
|
|
319
301
|
Returns **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** 
|
|
320
302
|
|
|
321
|
-
## prepareAttributesDefinitions
|
|
322
|
-
|
|
323
|
-
Create attributes from its definition.
|
|
324
|
-
|
|
325
|
-
### Parameters
|
|
326
|
-
|
|
327
|
-
* `newDefinitions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
328
|
-
* `presentDefinitions` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** optional merg in attributes
|
|
329
|
-
|
|
330
|
-
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** attributes
|
|
331
|
-
|
|
332
|
-
## mergeAttributeDefinitions
|
|
333
|
-
|
|
334
|
-
Merge attribute definitions.
|
|
335
|
-
|
|
336
|
-
### Parameters
|
|
337
|
-
|
|
338
|
-
* `dest` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** attribute definitions to be used also the merge target
|
|
339
|
-
* `atts` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** attribute definitions to be used
|
|
340
|
-
|
|
341
|
-
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** merged definitions (dest)
|
|
342
|
-
|
|
343
303
|
## setAttributes
|
|
344
304
|
|
|
345
305
|
Copies attribute values from a source object into a destination object.
|
|
@@ -363,6 +323,51 @@ Retrive attribute values from an object.
|
|
|
363
323
|
|
|
364
324
|
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** values
|
|
365
325
|
|
|
326
|
+
## tokens
|
|
327
|
+
|
|
328
|
+
## tokens
|
|
329
|
+
|
|
330
|
+
Split property path into tokens
|
|
331
|
+
|
|
332
|
+
### Parameters
|
|
333
|
+
|
|
334
|
+
* `string` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
335
|
+
|
|
336
|
+
## setAttribute
|
|
337
|
+
|
|
338
|
+
Set object attribute.
|
|
339
|
+
The name may be a property path like 'a.b.c'.
|
|
340
|
+
|
|
341
|
+
### Parameters
|
|
342
|
+
|
|
343
|
+
* `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
344
|
+
* `expression` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
345
|
+
* `value` **any** 
|
|
346
|
+
|
|
347
|
+
## getAttribute
|
|
348
|
+
|
|
349
|
+
Deliver attribute value.
|
|
350
|
+
The name may be a property path like 'a.b.c' or a\[2]
|
|
351
|
+
|
|
352
|
+
### Parameters
|
|
353
|
+
|
|
354
|
+
* `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
355
|
+
* `expression` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
356
|
+
|
|
357
|
+
Returns **any** value associated with the given property name
|
|
358
|
+
|
|
359
|
+
## getAttributeAndOperator
|
|
360
|
+
|
|
361
|
+
Deliver attribute value and operator.
|
|
362
|
+
The name may be a property path like 'a.b.c <='.
|
|
363
|
+
|
|
364
|
+
### Parameters
|
|
365
|
+
|
|
366
|
+
* `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
367
|
+
* `expression` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
368
|
+
|
|
369
|
+
Returns **\[any, [Token](#token)]** value associated with the given property name
|
|
370
|
+
|
|
366
371
|
## lookup
|
|
367
372
|
|
|
368
373
|
Token lookup
|
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
|
/**
|
|
@@ -41,7 +39,10 @@ export const name_attribute = {
|
|
|
41
39
|
/**
|
|
42
40
|
* @type {AttributeDefinition}
|
|
43
41
|
*/
|
|
44
|
-
export const email_attribute =
|
|
42
|
+
export const email_attribute = {
|
|
43
|
+
...default_attribute,
|
|
44
|
+
description: "email address"
|
|
45
|
+
};
|
|
45
46
|
|
|
46
47
|
/**
|
|
47
48
|
* The description of the object content.
|
|
@@ -56,7 +57,7 @@ export const description_attribute = {
|
|
|
56
57
|
/**
|
|
57
58
|
* @type {AttributeDefinition}
|
|
58
59
|
*/
|
|
59
|
-
export
|
|
60
|
+
export { default_attribute as type_attribute };
|
|
60
61
|
|
|
61
62
|
/**
|
|
62
63
|
* @type {AttributeDefinition}
|
|
@@ -69,22 +70,38 @@ export const state_attribute = {
|
|
|
69
70
|
/**
|
|
70
71
|
* @type {AttributeDefinition}
|
|
71
72
|
*/
|
|
72
|
-
export const
|
|
73
|
+
export const boolean_attribute_writeable_true = {
|
|
73
74
|
...default_attribute,
|
|
74
75
|
type: "boolean",
|
|
75
76
|
writable: true,
|
|
76
|
-
default:
|
|
77
|
+
default: true
|
|
77
78
|
};
|
|
78
79
|
|
|
79
80
|
/**
|
|
80
81
|
* @type {AttributeDefinition}
|
|
81
82
|
*/
|
|
82
|
-
export const
|
|
83
|
+
export const boolean_attribute_writeable_false = {
|
|
83
84
|
...default_attribute,
|
|
84
85
|
type: "boolean",
|
|
86
|
+
writable: true,
|
|
85
87
|
default: false
|
|
86
88
|
};
|
|
87
89
|
|
|
90
|
+
export { boolean_attribute_writeable_false as boolean_attribute };
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @type {AttributeDefinition}
|
|
94
|
+
*/
|
|
95
|
+
export const boolean_attribute_false = {
|
|
96
|
+
...boolean_attribute_writeable_false,
|
|
97
|
+
writable: false
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @type {AttributeDefinition}
|
|
102
|
+
*/
|
|
103
|
+
export { boolean_attribute_writeable_true as active_attribute };
|
|
104
|
+
|
|
88
105
|
/**
|
|
89
106
|
* @type {AttributeDefinition}
|
|
90
107
|
*/
|
|
@@ -171,12 +188,12 @@ export const integer_attribute = { ...default_attribute, type: "integer" };
|
|
|
171
188
|
/**
|
|
172
189
|
* @type {AttributeDefinition}
|
|
173
190
|
*/
|
|
174
|
-
export
|
|
191
|
+
export { integer_attribute as count_attribute };
|
|
175
192
|
|
|
176
193
|
/**
|
|
177
194
|
* @type {AttributeDefinition}
|
|
178
195
|
*/
|
|
179
|
-
export
|
|
196
|
+
export { integer_attribute as size_attribute };
|
|
180
197
|
|
|
181
198
|
/**
|
|
182
199
|
* @type {AttributeDefinition}
|
|
@@ -204,7 +221,7 @@ export const port_attribute = {
|
|
|
204
221
|
};
|
|
205
222
|
|
|
206
223
|
/**
|
|
207
|
-
* Unique id within
|
|
224
|
+
* Unique id within.
|
|
208
225
|
* @type {AttributeDefinition}
|
|
209
226
|
*/
|
|
210
227
|
export const id_attribute = {
|
|
@@ -214,7 +231,7 @@ export const id_attribute = {
|
|
|
214
231
|
};
|
|
215
232
|
|
|
216
233
|
/**
|
|
217
|
-
* The body text
|
|
234
|
+
* The body text.
|
|
218
235
|
* @type {AttributeDefinition}
|
|
219
236
|
*/
|
|
220
237
|
export const body_attribute = {
|
|
@@ -223,7 +240,7 @@ export const body_attribute = {
|
|
|
223
240
|
};
|
|
224
241
|
|
|
225
242
|
/**
|
|
226
|
-
* The one line description
|
|
243
|
+
* The one line description.
|
|
227
244
|
* @type {AttributeDefinition}
|
|
228
245
|
*/
|
|
229
246
|
export const title_attribute = {
|
|
@@ -254,16 +271,6 @@ export const timeout_attribute = {
|
|
|
254
271
|
writable: true
|
|
255
272
|
};
|
|
256
273
|
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* @type {AttributeDefinition}
|
|
260
|
-
*/
|
|
261
|
-
export const active_attribute = {
|
|
262
|
-
...boolean_attribute,
|
|
263
|
-
default: true,
|
|
264
|
-
writable: true
|
|
265
|
-
};
|
|
266
|
-
|
|
267
274
|
/**
|
|
268
275
|
* @type {AttributeDefinition}
|
|
269
276
|
*/
|
|
@@ -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
|
|
@@ -36,19 +35,19 @@ export const description_attribute: AttributeDefinition;
|
|
|
36
35
|
/**
|
|
37
36
|
* @type {AttributeDefinition}
|
|
38
37
|
*/
|
|
39
|
-
export const
|
|
38
|
+
export const state_attribute: AttributeDefinition;
|
|
40
39
|
/**
|
|
41
40
|
* @type {AttributeDefinition}
|
|
42
41
|
*/
|
|
43
|
-
export const
|
|
42
|
+
export const boolean_attribute_writeable_true: AttributeDefinition;
|
|
44
43
|
/**
|
|
45
44
|
* @type {AttributeDefinition}
|
|
46
45
|
*/
|
|
47
|
-
export const
|
|
46
|
+
export const boolean_attribute_writeable_false: AttributeDefinition;
|
|
48
47
|
/**
|
|
49
48
|
* @type {AttributeDefinition}
|
|
50
49
|
*/
|
|
51
|
-
export const
|
|
50
|
+
export const boolean_attribute_false: AttributeDefinition;
|
|
52
51
|
/**
|
|
53
52
|
* @type {AttributeDefinition}
|
|
54
53
|
*/
|
|
@@ -89,14 +88,6 @@ export const public_key_attribute: AttributeDefinition;
|
|
|
89
88
|
* @type {AttributeDefinition}
|
|
90
89
|
*/
|
|
91
90
|
export const integer_attribute: AttributeDefinition;
|
|
92
|
-
/**
|
|
93
|
-
* @type {AttributeDefinition}
|
|
94
|
-
*/
|
|
95
|
-
export const count_attribute: AttributeDefinition;
|
|
96
|
-
/**
|
|
97
|
-
* @type {AttributeDefinition}
|
|
98
|
-
*/
|
|
99
|
-
export const size_attribute: AttributeDefinition;
|
|
100
91
|
/**
|
|
101
92
|
* @type {AttributeDefinition}
|
|
102
93
|
*/
|
|
@@ -110,17 +101,17 @@ export const hostname_attribute: AttributeDefinition;
|
|
|
110
101
|
*/
|
|
111
102
|
export const port_attribute: AttributeDefinition;
|
|
112
103
|
/**
|
|
113
|
-
* Unique id within
|
|
104
|
+
* Unique id within.
|
|
114
105
|
* @type {AttributeDefinition}
|
|
115
106
|
*/
|
|
116
107
|
export const id_attribute: AttributeDefinition;
|
|
117
108
|
/**
|
|
118
|
-
* The body text
|
|
109
|
+
* The body text.
|
|
119
110
|
* @type {AttributeDefinition}
|
|
120
111
|
*/
|
|
121
112
|
export const body_attribute: AttributeDefinition;
|
|
122
113
|
/**
|
|
123
|
-
* The one line description
|
|
114
|
+
* The one line description.
|
|
124
115
|
* @type {AttributeDefinition}
|
|
125
116
|
*/
|
|
126
117
|
export const title_attribute: AttributeDefinition;
|
|
@@ -134,10 +125,6 @@ export const priority_attribute: AttributeDefinition;
|
|
|
134
125
|
* @type {AttributeDefinition}
|
|
135
126
|
*/
|
|
136
127
|
export const timeout_attribute: AttributeDefinition;
|
|
137
|
-
/**
|
|
138
|
-
* @type {AttributeDefinition}
|
|
139
|
-
*/
|
|
140
|
-
export const active_attribute: AttributeDefinition;
|
|
141
128
|
/**
|
|
142
129
|
* @type {AttributeDefinition}
|
|
143
130
|
*/
|
|
@@ -156,10 +143,6 @@ export type AttributeDefinition = {
|
|
|
156
143
|
* name of an attribute we depend on
|
|
157
144
|
*/
|
|
158
145
|
depends?: string;
|
|
159
|
-
/**
|
|
160
|
-
* extra attributes that are present in case our attribute is set
|
|
161
|
-
*/
|
|
162
|
-
additionalAttributes: string[];
|
|
163
146
|
/**
|
|
164
147
|
* human readable
|
|
165
148
|
*/
|
|
@@ -181,3 +164,4 @@ export type AttributeDefinition = {
|
|
|
181
164
|
*/
|
|
182
165
|
env?: string[] | string;
|
|
183
166
|
};
|
|
167
|
+
export { default_attribute as type_attribute, boolean_attribute_writeable_false as boolean_attribute, boolean_attribute_writeable_true as active_attribute, integer_attribute as count_attribute, integer_attribute as size_attribute };
|