pacc 5.3.0 → 6.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/package.json +1 -1
- package/src/common-attributes.mjs +6 -1
- package/src/types.mjs +5 -0
- package/types/common-attributes.d.mts +9 -1
- package/types/types.d.mts +5 -0
package/package.json
CHANGED
|
@@ -348,7 +348,12 @@ export const priority_attribute = {
|
|
|
348
348
|
/**
|
|
349
349
|
* @type {AttributeDefinition}
|
|
350
350
|
*/
|
|
351
|
-
export {
|
|
351
|
+
export const duration_attribute = { ...default_attribute, type: types.duration }
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* @type {AttributeDefinition}
|
|
355
|
+
*/
|
|
356
|
+
export const duration_ms_attribute = { ...default_attribute, type: types.duration_ms }
|
|
352
357
|
|
|
353
358
|
/**
|
|
354
359
|
* @type {AttributeDefinition}
|
package/src/types.mjs
CHANGED
|
@@ -40,6 +40,11 @@ export const types = {
|
|
|
40
40
|
duration: {
|
|
41
41
|
name: "duration",
|
|
42
42
|
primitive: true,
|
|
43
|
+
prepareValue: value => parseTime(value)
|
|
44
|
+
},
|
|
45
|
+
duration_ms: {
|
|
46
|
+
name: "duration_ms",
|
|
47
|
+
primitive: true,
|
|
43
48
|
prepareValue: value => parseTime(value) * 1000
|
|
44
49
|
},
|
|
45
50
|
url: {
|
|
@@ -166,6 +166,14 @@ export const title_attribute_writable: AttributeDefinition;
|
|
|
166
166
|
* @type {AttributeDefinition}
|
|
167
167
|
*/
|
|
168
168
|
export const priority_attribute: AttributeDefinition;
|
|
169
|
+
/**
|
|
170
|
+
* @type {AttributeDefinition}
|
|
171
|
+
*/
|
|
172
|
+
export const duration_attribute: AttributeDefinition;
|
|
173
|
+
/**
|
|
174
|
+
* @type {AttributeDefinition}
|
|
175
|
+
*/
|
|
176
|
+
export const duration_ms_attribute: AttributeDefinition;
|
|
169
177
|
/**
|
|
170
178
|
* @type {AttributeDefinition}
|
|
171
179
|
*/
|
|
@@ -226,4 +234,4 @@ export type AttributeDefinition = {
|
|
|
226
234
|
*/
|
|
227
235
|
additionalValues?: object;
|
|
228
236
|
};
|
|
229
|
-
export { default_attribute as string_attribute, default_attribute_writable as string_attribute_writable, description_attribute as description_attribute_writable, default_attribute as type_attribute, default_attribute_writable as state_attribute_writable, 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_writable as count_attribute_writable, integer_attribute as size_attribute, default_attribute_writable as body_attribute_writable
|
|
237
|
+
export { default_attribute as string_attribute, default_attribute_writable as string_attribute_writable, description_attribute as description_attribute_writable, default_attribute as type_attribute, default_attribute_writable as state_attribute_writable, 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_writable as count_attribute_writable, integer_attribute as size_attribute, default_attribute_writable as body_attribute_writable };
|
package/types/types.d.mts
CHANGED
|
@@ -32,6 +32,11 @@ export const types: {
|
|
|
32
32
|
primitive: boolean;
|
|
33
33
|
prepareValue: (value: any) => number;
|
|
34
34
|
};
|
|
35
|
+
duration_ms: {
|
|
36
|
+
name: string;
|
|
37
|
+
primitive: boolean;
|
|
38
|
+
prepareValue: (value: any) => number;
|
|
39
|
+
};
|
|
35
40
|
url: {
|
|
36
41
|
name: string;
|
|
37
42
|
prepareValue: (value: any) => any;
|