pacc 4.5.1 → 4.5.3
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 +31 -11
- package/package.json +1 -1
- package/src/common-attributes.mjs +37 -45
- package/types/common-attributes.d.mts +6 -23
package/README.md
CHANGED
|
@@ -36,13 +36,15 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
36
36
|
* [default\_attribute](#default_attribute)
|
|
37
37
|
* [default\_attribute](#default_attribute-1)
|
|
38
38
|
* [default\_attribute](#default_attribute-2)
|
|
39
|
+
* [string\_collection\_attribute\_writable](#string_collection_attribute_writable)
|
|
39
40
|
* [name\_attribute](#name_attribute)
|
|
40
41
|
* [email\_attribute](#email_attribute)
|
|
41
42
|
* [description\_attribute](#description_attribute)
|
|
42
43
|
* [state\_attribute](#state_attribute)
|
|
43
|
-
* [boolean\_attribute\
|
|
44
|
-
* [boolean\_attribute\
|
|
45
|
-
* [boolean\_attribute\
|
|
44
|
+
* [boolean\_attribute\_writable](#boolean_attribute_writable)
|
|
45
|
+
* [boolean\_attribute\_writable\_true](#boolean_attribute_writable_true)
|
|
46
|
+
* [boolean\_attribute\_writable\_true](#boolean_attribute_writable_true-1)
|
|
47
|
+
* [boolean\_attribute\_writable\_false](#boolean_attribute_writable_false)
|
|
46
48
|
* [boolean\_attribute\_false](#boolean_attribute_false)
|
|
47
49
|
* [empty\_attribute](#empty_attribute)
|
|
48
50
|
* [uuid\_attribute](#uuid_attribute)
|
|
@@ -54,9 +56,12 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
54
56
|
* [private\_key\_attribute](#private_key_attribute)
|
|
55
57
|
* [public\_key\_attribute](#public_key_attribute)
|
|
56
58
|
* [number\_attribute](#number_attribute)
|
|
59
|
+
* [number\_attribute](#number_attribute-1)
|
|
60
|
+
* [number\_attribute\_writable](#number_attribute_writable)
|
|
57
61
|
* [integer\_attribute](#integer_attribute)
|
|
58
62
|
* [integer\_attribute](#integer_attribute-1)
|
|
59
63
|
* [integer\_attribute](#integer_attribute-2)
|
|
64
|
+
* [integer\_attribute\_writable](#integer_attribute_writable)
|
|
60
65
|
* [object\_attribute](#object_attribute)
|
|
61
66
|
* [url\_attribute](#url_attribute)
|
|
62
67
|
* [hostname\_attribute](#hostname_attribute)
|
|
@@ -65,7 +70,6 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
65
70
|
* [body\_attribute](#body_attribute)
|
|
66
71
|
* [title\_attribute](#title_attribute)
|
|
67
72
|
* [priority\_attribute](#priority_attribute)
|
|
68
|
-
* [duration\_attribute](#duration_attribute)
|
|
69
73
|
* [timeout\_attribute](#timeout_attribute)
|
|
70
74
|
* [language\_attribute](#language_attribute)
|
|
71
75
|
* [filter](#filter)
|
|
@@ -170,6 +174,10 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
170
174
|
|
|
171
175
|
Type: [AttributeDefinition](#attributedefinition)
|
|
172
176
|
|
|
177
|
+
## string\_collection\_attribute\_writable
|
|
178
|
+
|
|
179
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
180
|
+
|
|
173
181
|
## name\_attribute
|
|
174
182
|
|
|
175
183
|
Type: [AttributeDefinition](#attributedefinition)
|
|
@@ -188,15 +196,19 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
188
196
|
|
|
189
197
|
Type: [AttributeDefinition](#attributedefinition)
|
|
190
198
|
|
|
191
|
-
## boolean\_attribute\
|
|
199
|
+
## boolean\_attribute\_writable
|
|
200
|
+
|
|
201
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
202
|
+
|
|
203
|
+
## boolean\_attribute\_writable\_true
|
|
192
204
|
|
|
193
205
|
Type: [AttributeDefinition](#attributedefinition)
|
|
194
206
|
|
|
195
|
-
## boolean\_attribute\
|
|
207
|
+
## boolean\_attribute\_writable\_true
|
|
196
208
|
|
|
197
209
|
Type: [AttributeDefinition](#attributedefinition)
|
|
198
210
|
|
|
199
|
-
## boolean\_attribute\
|
|
211
|
+
## boolean\_attribute\_writable\_false
|
|
200
212
|
|
|
201
213
|
Type: [AttributeDefinition](#attributedefinition)
|
|
202
214
|
|
|
@@ -244,6 +256,14 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
244
256
|
|
|
245
257
|
Type: [AttributeDefinition](#attributedefinition)
|
|
246
258
|
|
|
259
|
+
## number\_attribute
|
|
260
|
+
|
|
261
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
262
|
+
|
|
263
|
+
## number\_attribute\_writable
|
|
264
|
+
|
|
265
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
266
|
+
|
|
247
267
|
## integer\_attribute
|
|
248
268
|
|
|
249
269
|
Type: [AttributeDefinition](#attributedefinition)
|
|
@@ -256,6 +276,10 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
256
276
|
|
|
257
277
|
Type: [AttributeDefinition](#attributedefinition)
|
|
258
278
|
|
|
279
|
+
## integer\_attribute\_writable
|
|
280
|
+
|
|
281
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
282
|
+
|
|
259
283
|
## object\_attribute
|
|
260
284
|
|
|
261
285
|
Type: [AttributeDefinition](#attributedefinition)
|
|
@@ -297,10 +321,6 @@ this defines the order.
|
|
|
297
321
|
|
|
298
322
|
Type: [AttributeDefinition](#attributedefinition)
|
|
299
323
|
|
|
300
|
-
## duration\_attribute
|
|
301
|
-
|
|
302
|
-
Type: [AttributeDefinition](#attributedefinition)
|
|
303
|
-
|
|
304
324
|
## timeout\_attribute
|
|
305
325
|
|
|
306
326
|
Type: [AttributeDefinition](#attributedefinition)
|
package/package.json
CHANGED
|
@@ -28,11 +28,24 @@ export const default_attribute = {
|
|
|
28
28
|
isKey: false
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* @type {AttributeDefinition}
|
|
33
|
+
*/
|
|
34
|
+
export const default_attribute_writable = {
|
|
35
|
+
...default_attribute,
|
|
36
|
+
writable: true
|
|
37
|
+
};
|
|
38
|
+
|
|
31
39
|
/**
|
|
32
40
|
* @type {AttributeDefinition}
|
|
33
41
|
*/
|
|
34
42
|
export { default_attribute as string_attribute };
|
|
35
43
|
|
|
44
|
+
/**
|
|
45
|
+
* @type {AttributeDefinition}
|
|
46
|
+
*/
|
|
47
|
+
export { default_attribute_writable as string_attribute_writable };
|
|
48
|
+
|
|
36
49
|
export const string_collection_attribute = {
|
|
37
50
|
...default_attribute,
|
|
38
51
|
collection: true
|
|
@@ -67,9 +80,8 @@ export const email_attribute = {
|
|
|
67
80
|
* @type {AttributeDefinition}
|
|
68
81
|
*/
|
|
69
82
|
export const description_attribute = {
|
|
70
|
-
...
|
|
71
|
-
description: "human readable description"
|
|
72
|
-
writable: true
|
|
83
|
+
...default_attribute_writable,
|
|
84
|
+
description: "human readable description"
|
|
73
85
|
};
|
|
74
86
|
|
|
75
87
|
/**
|
|
@@ -80,18 +92,21 @@ export { default_attribute as type_attribute };
|
|
|
80
92
|
/**
|
|
81
93
|
* @type {AttributeDefinition}
|
|
82
94
|
*/
|
|
83
|
-
export
|
|
84
|
-
|
|
85
|
-
|
|
95
|
+
export { default_attribute_writable as state_attribute };
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @type {AttributeDefinition}
|
|
99
|
+
*/
|
|
100
|
+
export const boolean_attribute_writable = {
|
|
101
|
+
...default_attribute_writable,
|
|
102
|
+
type: "boolean"
|
|
86
103
|
};
|
|
87
104
|
|
|
88
105
|
/**
|
|
89
106
|
* @type {AttributeDefinition}
|
|
90
107
|
*/
|
|
91
108
|
export const boolean_attribute_writable_true = {
|
|
92
|
-
...
|
|
93
|
-
type: "boolean",
|
|
94
|
-
writable: true,
|
|
109
|
+
...boolean_attribute_writable,
|
|
95
110
|
default: true
|
|
96
111
|
};
|
|
97
112
|
|
|
@@ -99,9 +114,7 @@ export const boolean_attribute_writable_true = {
|
|
|
99
114
|
* @type {AttributeDefinition}
|
|
100
115
|
*/
|
|
101
116
|
export const boolean_attribute_writable_false = {
|
|
102
|
-
...
|
|
103
|
-
type: "boolean",
|
|
104
|
-
writable: true,
|
|
117
|
+
...boolean_attribute_writable,
|
|
105
118
|
default: false
|
|
106
119
|
};
|
|
107
120
|
|
|
@@ -140,65 +153,47 @@ export const uuid_attribute = {
|
|
|
140
153
|
* @type {AttributeDefinition}
|
|
141
154
|
*/
|
|
142
155
|
export const secret_attribute = {
|
|
143
|
-
...
|
|
144
|
-
private: true
|
|
145
|
-
writable: true
|
|
156
|
+
...default_attribute_writable,
|
|
157
|
+
private: true
|
|
146
158
|
};
|
|
147
159
|
|
|
148
160
|
/**
|
|
149
161
|
* @type {AttributeDefinition}
|
|
150
162
|
*/
|
|
151
|
-
export
|
|
152
|
-
...default_attribute,
|
|
153
|
-
private: true,
|
|
154
|
-
writable: true
|
|
155
|
-
};
|
|
163
|
+
export { secret_attribute as username_attribute };
|
|
156
164
|
|
|
157
165
|
/**
|
|
158
166
|
* @type {AttributeDefinition}
|
|
159
167
|
*/
|
|
160
|
-
export
|
|
161
|
-
|
|
162
|
-
private: true,
|
|
163
|
-
writable: true
|
|
164
|
-
};
|
|
168
|
+
export { secret_attribute as password_attribute };
|
|
169
|
+
|
|
165
170
|
|
|
166
171
|
/**
|
|
167
172
|
* @type {AttributeDefinition}
|
|
168
173
|
*/
|
|
169
|
-
export
|
|
170
|
-
...default_attribute,
|
|
171
|
-
private: true,
|
|
172
|
-
writable: true
|
|
173
|
-
};
|
|
174
|
+
export { secret_attribute as token_attribute };
|
|
174
175
|
|
|
175
176
|
/**
|
|
176
177
|
* @type {AttributeDefinition}
|
|
177
178
|
*/
|
|
178
|
-
export
|
|
179
|
-
...default_attribute,
|
|
180
|
-
private: true,
|
|
181
|
-
writable: true
|
|
182
|
-
};
|
|
179
|
+
export { secret_attribute as certificate_attribute };
|
|
183
180
|
|
|
184
181
|
/**
|
|
185
182
|
* @type {AttributeDefinition}
|
|
186
183
|
*/
|
|
187
184
|
export const private_key_attribute = {
|
|
188
|
-
...
|
|
185
|
+
...default_attribute_writable,
|
|
189
186
|
description: "private key",
|
|
190
|
-
private: true
|
|
191
|
-
writable: true
|
|
187
|
+
private: true
|
|
192
188
|
};
|
|
193
189
|
|
|
194
190
|
/**
|
|
195
191
|
* @type {AttributeDefinition}
|
|
196
192
|
*/
|
|
197
193
|
export const public_key_attribute = {
|
|
198
|
-
...
|
|
194
|
+
...default_attribute_writable,
|
|
199
195
|
description: "public key",
|
|
200
|
-
private: true
|
|
201
|
-
writable: true
|
|
196
|
+
private: true
|
|
202
197
|
};
|
|
203
198
|
|
|
204
199
|
/**
|
|
@@ -281,10 +276,7 @@ export const id_attribute = {
|
|
|
281
276
|
* The body text.
|
|
282
277
|
* @type {AttributeDefinition}
|
|
283
278
|
*/
|
|
284
|
-
export
|
|
285
|
-
...default_attribute,
|
|
286
|
-
writable: true
|
|
287
|
-
};
|
|
279
|
+
export { default_attribute_writable as body_attribute };
|
|
288
280
|
|
|
289
281
|
/**
|
|
290
282
|
* The one line description.
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
* @type {AttributeDefinition}
|
|
20
20
|
*/
|
|
21
21
|
export const default_attribute: AttributeDefinition;
|
|
22
|
+
/**
|
|
23
|
+
* @type {AttributeDefinition}
|
|
24
|
+
*/
|
|
25
|
+
export const default_attribute_writable: AttributeDefinition;
|
|
22
26
|
export namespace string_collection_attribute {
|
|
23
27
|
export let collection: boolean;
|
|
24
28
|
export let type: string;
|
|
@@ -55,7 +59,7 @@ export const description_attribute: AttributeDefinition;
|
|
|
55
59
|
/**
|
|
56
60
|
* @type {AttributeDefinition}
|
|
57
61
|
*/
|
|
58
|
-
export const
|
|
62
|
+
export const boolean_attribute_writable: AttributeDefinition;
|
|
59
63
|
/**
|
|
60
64
|
* @type {AttributeDefinition}
|
|
61
65
|
*/
|
|
@@ -80,22 +84,6 @@ export const uuid_attribute: AttributeDefinition;
|
|
|
80
84
|
* @type {AttributeDefinition}
|
|
81
85
|
*/
|
|
82
86
|
export const secret_attribute: AttributeDefinition;
|
|
83
|
-
/**
|
|
84
|
-
* @type {AttributeDefinition}
|
|
85
|
-
*/
|
|
86
|
-
export const username_attribute: AttributeDefinition;
|
|
87
|
-
/**
|
|
88
|
-
* @type {AttributeDefinition}
|
|
89
|
-
*/
|
|
90
|
-
export const password_attribute: AttributeDefinition;
|
|
91
|
-
/**
|
|
92
|
-
* @type {AttributeDefinition}
|
|
93
|
-
*/
|
|
94
|
-
export const token_attribute: AttributeDefinition;
|
|
95
|
-
/**
|
|
96
|
-
* @type {AttributeDefinition}
|
|
97
|
-
*/
|
|
98
|
-
export const certificate_attribute: AttributeDefinition;
|
|
99
87
|
/**
|
|
100
88
|
* @type {AttributeDefinition}
|
|
101
89
|
*/
|
|
@@ -141,11 +129,6 @@ export const port_attribute: AttributeDefinition;
|
|
|
141
129
|
* @type {AttributeDefinition}
|
|
142
130
|
*/
|
|
143
131
|
export const id_attribute: AttributeDefinition;
|
|
144
|
-
/**
|
|
145
|
-
* The body text.
|
|
146
|
-
* @type {AttributeDefinition}
|
|
147
|
-
*/
|
|
148
|
-
export const body_attribute: AttributeDefinition;
|
|
149
132
|
/**
|
|
150
133
|
* The one line description.
|
|
151
134
|
* @type {AttributeDefinition}
|
|
@@ -200,4 +183,4 @@ export type AttributeDefinition = {
|
|
|
200
183
|
*/
|
|
201
184
|
env?: string[] | string;
|
|
202
185
|
};
|
|
203
|
-
export { default_attribute as string_attribute, default_attribute as type_attribute, boolean_attribute_writable_false as boolean_attribute, boolean_attribute_writable_true as active_attribute, integer_attribute as count_attribute, integer_attribute as size_attribute, number_attribute as duration_attribute };
|
|
186
|
+
export { default_attribute as string_attribute, default_attribute_writable as string_attribute_writable, default_attribute as type_attribute, default_attribute_writable as state_attribute, boolean_attribute_writable_false as boolean_attribute, boolean_attribute_writable_true as active_attribute, secret_attribute as username_attribute, secret_attribute as password_attribute, secret_attribute as token_attribute, secret_attribute as certificate_attribute, integer_attribute as count_attribute, integer_attribute as size_attribute, default_attribute_writable as body_attribute, number_attribute as duration_attribute };
|