pacc 10.0.4 → 10.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "10.0.4",
3
+ "version": "10.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -4,9 +4,9 @@ import { types } from "./types.mjs";
4
4
  * @typedef {Object} AttributeDefinition
5
5
  *
6
6
  * @property {string} name
7
- * @property {object} type
8
- * @property {boolean} key
9
- * @property {boolean} writable
7
+ * @property {Type} type
8
+ * @property {boolean} key are we an identifying attribute
9
+ * @property {boolean} writable can this attribute be modified
10
10
  * @property {boolean} mandatory
11
11
  * @property {boolean} collection are we a collection (set, map, array, object)
12
12
  * @property {boolean} owner are we the owner of the value
@@ -52,6 +52,14 @@ export const default_attribute_writable = {
52
52
  writable: true
53
53
  };
54
54
 
55
+ /**
56
+ * @type {AttributeDefinition}
57
+ */
58
+ export const default_collection_attribute_writeable = {
59
+ ...default_attribute_writable,
60
+ collection: true
61
+ };
62
+
55
63
  /**
56
64
  * @type {AttributeDefinition}
57
65
  */
@@ -2,9 +2,9 @@
2
2
  * @typedef {Object} AttributeDefinition
3
3
  *
4
4
  * @property {string} name
5
- * @property {object} type
6
- * @property {boolean} key
7
- * @property {boolean} writable
5
+ * @property {Type} type
6
+ * @property {boolean} key are we an identifying attribute
7
+ * @property {boolean} writable can this attribute be modified
8
8
  * @property {boolean} mandatory
9
9
  * @property {boolean} collection are we a collection (set, map, array, object)
10
10
  * @property {boolean} owner are we the owner of the value
@@ -34,6 +34,10 @@ export const default_attribute: AttributeDefinition;
34
34
  * @type {AttributeDefinition}
35
35
  */
36
36
  export const default_attribute_writable: AttributeDefinition;
37
+ /**
38
+ * @type {AttributeDefinition}
39
+ */
40
+ export const default_collection_attribute_writeable: AttributeDefinition;
37
41
  /**
38
42
  * @type {AttributeDefinition}
39
43
  */
@@ -122,7 +126,7 @@ export const yesno_attribute: AttributeDefinition;
122
126
  export namespace yesno_attribute_writable {
123
127
  export let writable: boolean;
124
128
  export let name: string;
125
- export let type: object;
129
+ export let type: Type;
126
130
  export let key: boolean;
127
131
  export let mandatory: boolean;
128
132
  export let collection: boolean;
@@ -282,8 +286,14 @@ export const timeout_attribute: AttributeDefinition;
282
286
  export const language_attribute: AttributeDefinition;
283
287
  export type AttributeDefinition = {
284
288
  name: string;
285
- type: object;
289
+ type: Type;
290
+ /**
291
+ * are we an identifying attribute
292
+ */
286
293
  key: boolean;
294
+ /**
295
+ * can this attribute be modified
296
+ */
287
297
  writable: boolean;
288
298
  mandatory: boolean;
289
299
  /**