pacc 4.5.2 → 4.6.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 +58 -28
- package/package.json +2 -2
- package/src/common-attributes.mjs +39 -43
- package/types/common-attributes.d.mts +8 -25
package/README.md
CHANGED
|
@@ -36,36 +36,42 @@ 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
|
+
* [default\_attribute\_writable](#default_attribute_writable)
|
|
40
|
+
* [default\_attribute\_writable](#default_attribute_writable-1)
|
|
41
|
+
* [default\_attribute\_writable](#default_attribute_writable-2)
|
|
42
|
+
* [default\_attribute\_writable](#default_attribute_writable-3)
|
|
43
|
+
* [string\_collection\_attribute\_writable](#string_collection_attribute_writable)
|
|
39
44
|
* [name\_attribute](#name_attribute)
|
|
40
45
|
* [email\_attribute](#email_attribute)
|
|
41
46
|
* [description\_attribute](#description_attribute)
|
|
42
|
-
* [
|
|
43
|
-
* [boolean\_attribute\
|
|
44
|
-
* [boolean\_attribute\
|
|
45
|
-
* [boolean\_attribute\
|
|
47
|
+
* [boolean\_attribute\_writable](#boolean_attribute_writable)
|
|
48
|
+
* [boolean\_attribute\_writable\_true](#boolean_attribute_writable_true)
|
|
49
|
+
* [boolean\_attribute\_writable\_true](#boolean_attribute_writable_true-1)
|
|
50
|
+
* [boolean\_attribute\_writable\_false](#boolean_attribute_writable_false)
|
|
46
51
|
* [boolean\_attribute\_false](#boolean_attribute_false)
|
|
47
52
|
* [empty\_attribute](#empty_attribute)
|
|
48
53
|
* [uuid\_attribute](#uuid_attribute)
|
|
49
54
|
* [secret\_attribute](#secret_attribute)
|
|
50
|
-
* [
|
|
51
|
-
* [
|
|
52
|
-
* [
|
|
53
|
-
* [
|
|
55
|
+
* [secret\_attribute](#secret_attribute-1)
|
|
56
|
+
* [secret\_attribute](#secret_attribute-2)
|
|
57
|
+
* [secret\_attribute](#secret_attribute-3)
|
|
58
|
+
* [secret\_attribute](#secret_attribute-4)
|
|
54
59
|
* [private\_key\_attribute](#private_key_attribute)
|
|
55
60
|
* [public\_key\_attribute](#public_key_attribute)
|
|
56
61
|
* [number\_attribute](#number_attribute)
|
|
62
|
+
* [number\_attribute](#number_attribute-1)
|
|
63
|
+
* [number\_attribute\_writable](#number_attribute_writable)
|
|
57
64
|
* [integer\_attribute](#integer_attribute)
|
|
58
65
|
* [integer\_attribute](#integer_attribute-1)
|
|
59
66
|
* [integer\_attribute](#integer_attribute-2)
|
|
67
|
+
* [integer\_attribute\_writable](#integer_attribute_writable)
|
|
60
68
|
* [object\_attribute](#object_attribute)
|
|
61
69
|
* [url\_attribute](#url_attribute)
|
|
62
70
|
* [hostname\_attribute](#hostname_attribute)
|
|
63
71
|
* [port\_attribute](#port_attribute)
|
|
64
72
|
* [id\_attribute](#id_attribute)
|
|
65
|
-
* [body\_attribute](#body_attribute)
|
|
66
73
|
* [title\_attribute](#title_attribute)
|
|
67
74
|
* [priority\_attribute](#priority_attribute)
|
|
68
|
-
* [duration\_attribute](#duration_attribute)
|
|
69
75
|
* [timeout\_attribute](#timeout_attribute)
|
|
70
76
|
* [language\_attribute](#language_attribute)
|
|
71
77
|
* [filter](#filter)
|
|
@@ -170,6 +176,28 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
170
176
|
|
|
171
177
|
Type: [AttributeDefinition](#attributedefinition)
|
|
172
178
|
|
|
179
|
+
## default\_attribute\_writable
|
|
180
|
+
|
|
181
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
182
|
+
|
|
183
|
+
## default\_attribute\_writable
|
|
184
|
+
|
|
185
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
186
|
+
|
|
187
|
+
## default\_attribute\_writable
|
|
188
|
+
|
|
189
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
190
|
+
|
|
191
|
+
## default\_attribute\_writable
|
|
192
|
+
|
|
193
|
+
The body text.
|
|
194
|
+
|
|
195
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
196
|
+
|
|
197
|
+
## string\_collection\_attribute\_writable
|
|
198
|
+
|
|
199
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
200
|
+
|
|
173
201
|
## name\_attribute
|
|
174
202
|
|
|
175
203
|
Type: [AttributeDefinition](#attributedefinition)
|
|
@@ -184,19 +212,19 @@ The description of the object content.
|
|
|
184
212
|
|
|
185
213
|
Type: [AttributeDefinition](#attributedefinition)
|
|
186
214
|
|
|
187
|
-
##
|
|
215
|
+
## boolean\_attribute\_writable
|
|
188
216
|
|
|
189
217
|
Type: [AttributeDefinition](#attributedefinition)
|
|
190
218
|
|
|
191
|
-
## boolean\_attribute\
|
|
219
|
+
## boolean\_attribute\_writable\_true
|
|
192
220
|
|
|
193
221
|
Type: [AttributeDefinition](#attributedefinition)
|
|
194
222
|
|
|
195
|
-
## boolean\_attribute\
|
|
223
|
+
## boolean\_attribute\_writable\_true
|
|
196
224
|
|
|
197
225
|
Type: [AttributeDefinition](#attributedefinition)
|
|
198
226
|
|
|
199
|
-
## boolean\_attribute\
|
|
227
|
+
## boolean\_attribute\_writable\_false
|
|
200
228
|
|
|
201
229
|
Type: [AttributeDefinition](#attributedefinition)
|
|
202
230
|
|
|
@@ -216,19 +244,19 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
216
244
|
|
|
217
245
|
Type: [AttributeDefinition](#attributedefinition)
|
|
218
246
|
|
|
219
|
-
##
|
|
247
|
+
## secret\_attribute
|
|
220
248
|
|
|
221
249
|
Type: [AttributeDefinition](#attributedefinition)
|
|
222
250
|
|
|
223
|
-
##
|
|
251
|
+
## secret\_attribute
|
|
224
252
|
|
|
225
253
|
Type: [AttributeDefinition](#attributedefinition)
|
|
226
254
|
|
|
227
|
-
##
|
|
255
|
+
## secret\_attribute
|
|
228
256
|
|
|
229
257
|
Type: [AttributeDefinition](#attributedefinition)
|
|
230
258
|
|
|
231
|
-
##
|
|
259
|
+
## secret\_attribute
|
|
232
260
|
|
|
233
261
|
Type: [AttributeDefinition](#attributedefinition)
|
|
234
262
|
|
|
@@ -244,6 +272,14 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
244
272
|
|
|
245
273
|
Type: [AttributeDefinition](#attributedefinition)
|
|
246
274
|
|
|
275
|
+
## number\_attribute
|
|
276
|
+
|
|
277
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
278
|
+
|
|
279
|
+
## number\_attribute\_writable
|
|
280
|
+
|
|
281
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
282
|
+
|
|
247
283
|
## integer\_attribute
|
|
248
284
|
|
|
249
285
|
Type: [AttributeDefinition](#attributedefinition)
|
|
@@ -256,6 +292,10 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
256
292
|
|
|
257
293
|
Type: [AttributeDefinition](#attributedefinition)
|
|
258
294
|
|
|
295
|
+
## integer\_attribute\_writable
|
|
296
|
+
|
|
297
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
298
|
+
|
|
259
299
|
## object\_attribute
|
|
260
300
|
|
|
261
301
|
Type: [AttributeDefinition](#attributedefinition)
|
|
@@ -278,12 +318,6 @@ Unique id within.
|
|
|
278
318
|
|
|
279
319
|
Type: [AttributeDefinition](#attributedefinition)
|
|
280
320
|
|
|
281
|
-
## body\_attribute
|
|
282
|
-
|
|
283
|
-
The body text.
|
|
284
|
-
|
|
285
|
-
Type: [AttributeDefinition](#attributedefinition)
|
|
286
|
-
|
|
287
321
|
## title\_attribute
|
|
288
322
|
|
|
289
323
|
The one line description.
|
|
@@ -297,10 +331,6 @@ this defines the order.
|
|
|
297
331
|
|
|
298
332
|
Type: [AttributeDefinition](#attributedefinition)
|
|
299
333
|
|
|
300
|
-
## duration\_attribute
|
|
301
|
-
|
|
302
|
-
Type: [AttributeDefinition](#attributedefinition)
|
|
303
|
-
|
|
304
334
|
## timeout\_attribute
|
|
305
335
|
|
|
306
336
|
Type: [AttributeDefinition](#attributedefinition)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pacc",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"c8": "^10.1.3",
|
|
39
39
|
"documentation": "^14.0.3",
|
|
40
40
|
"semantic-release": "^24.2.7",
|
|
41
|
-
"typescript": "^5.
|
|
41
|
+
"typescript": "^5.9.2"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=22.17.1"
|
|
@@ -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
|
|
@@ -63,15 +76,23 @@ export const email_attribute = {
|
|
|
63
76
|
};
|
|
64
77
|
|
|
65
78
|
/**
|
|
66
|
-
* The description of the object content.
|
|
67
79
|
* @type {AttributeDefinition}
|
|
68
80
|
*/
|
|
69
|
-
export const
|
|
81
|
+
export const version_attribute_writable = {
|
|
70
82
|
...default_attribute,
|
|
71
|
-
description: "
|
|
83
|
+
description: "version",
|
|
72
84
|
writable: true
|
|
73
85
|
};
|
|
74
86
|
|
|
87
|
+
/**
|
|
88
|
+
* The description of the object content.
|
|
89
|
+
* @type {AttributeDefinition}
|
|
90
|
+
*/
|
|
91
|
+
export const description_attribute = {
|
|
92
|
+
...default_attribute_writable,
|
|
93
|
+
description: "human readable description"
|
|
94
|
+
};
|
|
95
|
+
|
|
75
96
|
/**
|
|
76
97
|
* @type {AttributeDefinition}
|
|
77
98
|
*/
|
|
@@ -80,18 +101,14 @@ export { default_attribute as type_attribute };
|
|
|
80
101
|
/**
|
|
81
102
|
* @type {AttributeDefinition}
|
|
82
103
|
*/
|
|
83
|
-
export
|
|
84
|
-
...default_attribute,
|
|
85
|
-
writable: true
|
|
86
|
-
};
|
|
104
|
+
export { default_attribute_writable as state_attribute };
|
|
87
105
|
|
|
88
106
|
/**
|
|
89
107
|
* @type {AttributeDefinition}
|
|
90
108
|
*/
|
|
91
109
|
export const boolean_attribute_writable = {
|
|
92
|
-
...
|
|
93
|
-
type: "boolean"
|
|
94
|
-
writable: true,
|
|
110
|
+
...default_attribute_writable,
|
|
111
|
+
type: "boolean"
|
|
95
112
|
};
|
|
96
113
|
|
|
97
114
|
/**
|
|
@@ -145,65 +162,47 @@ export const uuid_attribute = {
|
|
|
145
162
|
* @type {AttributeDefinition}
|
|
146
163
|
*/
|
|
147
164
|
export const secret_attribute = {
|
|
148
|
-
...
|
|
149
|
-
private: true
|
|
150
|
-
writable: true
|
|
165
|
+
...default_attribute_writable,
|
|
166
|
+
private: true
|
|
151
167
|
};
|
|
152
168
|
|
|
153
169
|
/**
|
|
154
170
|
* @type {AttributeDefinition}
|
|
155
171
|
*/
|
|
156
|
-
export
|
|
157
|
-
...default_attribute,
|
|
158
|
-
private: true,
|
|
159
|
-
writable: true
|
|
160
|
-
};
|
|
172
|
+
export { secret_attribute as username_attribute };
|
|
161
173
|
|
|
162
174
|
/**
|
|
163
175
|
* @type {AttributeDefinition}
|
|
164
176
|
*/
|
|
165
|
-
export
|
|
166
|
-
|
|
167
|
-
private: true,
|
|
168
|
-
writable: true
|
|
169
|
-
};
|
|
177
|
+
export { secret_attribute as password_attribute };
|
|
178
|
+
|
|
170
179
|
|
|
171
180
|
/**
|
|
172
181
|
* @type {AttributeDefinition}
|
|
173
182
|
*/
|
|
174
|
-
export
|
|
175
|
-
...default_attribute,
|
|
176
|
-
private: true,
|
|
177
|
-
writable: true
|
|
178
|
-
};
|
|
183
|
+
export { secret_attribute as token_attribute };
|
|
179
184
|
|
|
180
185
|
/**
|
|
181
186
|
* @type {AttributeDefinition}
|
|
182
187
|
*/
|
|
183
|
-
export
|
|
184
|
-
...default_attribute,
|
|
185
|
-
private: true,
|
|
186
|
-
writable: true
|
|
187
|
-
};
|
|
188
|
+
export { secret_attribute as certificate_attribute };
|
|
188
189
|
|
|
189
190
|
/**
|
|
190
191
|
* @type {AttributeDefinition}
|
|
191
192
|
*/
|
|
192
193
|
export const private_key_attribute = {
|
|
193
|
-
...
|
|
194
|
+
...default_attribute_writable,
|
|
194
195
|
description: "private key",
|
|
195
|
-
private: true
|
|
196
|
-
writable: true
|
|
196
|
+
private: true
|
|
197
197
|
};
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
200
|
* @type {AttributeDefinition}
|
|
201
201
|
*/
|
|
202
202
|
export const public_key_attribute = {
|
|
203
|
-
...
|
|
203
|
+
...default_attribute_writable,
|
|
204
204
|
description: "public key",
|
|
205
|
-
private: true
|
|
206
|
-
writable: true
|
|
205
|
+
private: true
|
|
207
206
|
};
|
|
208
207
|
|
|
209
208
|
/**
|
|
@@ -286,10 +285,7 @@ export const id_attribute = {
|
|
|
286
285
|
* The body text.
|
|
287
286
|
* @type {AttributeDefinition}
|
|
288
287
|
*/
|
|
289
|
-
export
|
|
290
|
-
...default_attribute,
|
|
291
|
-
writable: true
|
|
292
|
-
};
|
|
288
|
+
export { default_attribute_writable as body_attribute };
|
|
293
289
|
|
|
294
290
|
/**
|
|
295
291
|
* 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;
|
|
@@ -48,14 +52,14 @@ export const name_attribute: AttributeDefinition;
|
|
|
48
52
|
*/
|
|
49
53
|
export const email_attribute: AttributeDefinition;
|
|
50
54
|
/**
|
|
51
|
-
* The description of the object content.
|
|
52
55
|
* @type {AttributeDefinition}
|
|
53
56
|
*/
|
|
54
|
-
export const
|
|
57
|
+
export const version_attribute_writable: AttributeDefinition;
|
|
55
58
|
/**
|
|
59
|
+
* The description of the object content.
|
|
56
60
|
* @type {AttributeDefinition}
|
|
57
61
|
*/
|
|
58
|
-
export const
|
|
62
|
+
export const description_attribute: AttributeDefinition;
|
|
59
63
|
/**
|
|
60
64
|
* @type {AttributeDefinition}
|
|
61
65
|
*/
|
|
@@ -84,22 +88,6 @@ export const uuid_attribute: AttributeDefinition;
|
|
|
84
88
|
* @type {AttributeDefinition}
|
|
85
89
|
*/
|
|
86
90
|
export const secret_attribute: AttributeDefinition;
|
|
87
|
-
/**
|
|
88
|
-
* @type {AttributeDefinition}
|
|
89
|
-
*/
|
|
90
|
-
export const username_attribute: AttributeDefinition;
|
|
91
|
-
/**
|
|
92
|
-
* @type {AttributeDefinition}
|
|
93
|
-
*/
|
|
94
|
-
export const password_attribute: AttributeDefinition;
|
|
95
|
-
/**
|
|
96
|
-
* @type {AttributeDefinition}
|
|
97
|
-
*/
|
|
98
|
-
export const token_attribute: AttributeDefinition;
|
|
99
|
-
/**
|
|
100
|
-
* @type {AttributeDefinition}
|
|
101
|
-
*/
|
|
102
|
-
export const certificate_attribute: AttributeDefinition;
|
|
103
91
|
/**
|
|
104
92
|
* @type {AttributeDefinition}
|
|
105
93
|
*/
|
|
@@ -145,11 +133,6 @@ export const port_attribute: AttributeDefinition;
|
|
|
145
133
|
* @type {AttributeDefinition}
|
|
146
134
|
*/
|
|
147
135
|
export const id_attribute: AttributeDefinition;
|
|
148
|
-
/**
|
|
149
|
-
* The body text.
|
|
150
|
-
* @type {AttributeDefinition}
|
|
151
|
-
*/
|
|
152
|
-
export const body_attribute: AttributeDefinition;
|
|
153
136
|
/**
|
|
154
137
|
* The one line description.
|
|
155
138
|
* @type {AttributeDefinition}
|
|
@@ -204,4 +187,4 @@ export type AttributeDefinition = {
|
|
|
204
187
|
*/
|
|
205
188
|
env?: string[] | string;
|
|
206
189
|
};
|
|
207
|
-
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 };
|
|
190
|
+
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 };
|