repository-provider 32.4.1 → 32.4.2

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": "repository-provider",
3
- "version": "32.4.1",
3
+ "version": "32.4.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,12 +1,14 @@
1
1
  export const boolean_attribute = {
2
2
  type: "boolean",
3
3
  default: false,
4
+ mandatory: false,
4
5
  writable: true
5
6
  };
6
7
 
7
8
  export const boolean_read_only_attribute = {
8
9
  type: "boolean",
9
- default: false
10
+ default: false,
11
+ mandatory: false
10
12
  };
11
13
 
12
14
  export const uuid_attiribute = { isKey: true, type: "string" };
@@ -16,7 +18,11 @@ export const secret_attribute = {
16
18
  private: true,
17
19
  writable: true
18
20
  };
19
- export const size_attribute = { type: "integer" };
21
+ export const size_attribute = { type: "integer", mandatory: false };
22
+ export const name_attribute = {
23
+ type: "string",
24
+ isKey: true
25
+ };
20
26
 
21
27
  export const url = { description: "home of the object", type: "url" };
22
28
 
@@ -26,14 +32,10 @@ export const url = { description: "home of the object", type: "url" };
26
32
  export const description = {
27
33
  type: "string",
28
34
  description: "human readable description",
35
+ mandatory: false,
29
36
  writable: true
30
37
  };
31
38
 
32
- export const name = {
33
- type: "string",
34
- isKey: true
35
- };
36
-
37
39
  /**
38
40
  * Unique id within the provider.
39
41
  */
@@ -52,7 +54,8 @@ export const body = { type: "string", writable: true };
52
54
  export const title = {
53
55
  type: "string",
54
56
  description: "human readable title",
55
- writable: true
57
+ writable: true,
58
+ mandatory: false
56
59
  };
57
60
 
58
61
  /**
@@ -62,9 +65,15 @@ export const title = {
62
65
  export const priority = {
63
66
  type: "number",
64
67
  default: 0,
65
- writable: true
68
+ writable: true,
69
+ mandatory: false
66
70
  };
67
71
 
68
- export const active = { type: "boolean", default: true, writable: true };
72
+ export const active = {
73
+ type: "boolean",
74
+ default: true,
75
+ mandatory: false,
76
+ writable: true
77
+ };
69
78
  export const language = { type: "string" };
70
79
  export const type = { type: "string" };
@@ -8,7 +8,7 @@ import { Hook } from "./hook.mjs";
8
8
  import { Project } from "./project.mjs";
9
9
  import { Milestone } from "./milestone.mjs";
10
10
  import { BaseObject } from "./base-object.mjs";
11
- import { url, name, description, priority } from "./attributes.mjs";
11
+ import { url, name_attribute, description, priority } from "./attributes.mjs";
12
12
 
13
13
  /**
14
14
  * @typedef {Object} MessageDestination
@@ -105,7 +105,7 @@ export class BaseProvider extends BaseObject {
105
105
  * Name of the provider.
106
106
  */
107
107
  name: {
108
- ...name,
108
+ ...name_attribute,
109
109
  env: ["{{instanceIdentifier}}NAME"]
110
110
  },
111
111
 
@@ -115,6 +115,7 @@ export class BaseProvider extends BaseObject {
115
115
  messageDestination: {
116
116
  type: "object",
117
117
  default: console,
118
+ mandatory: false,
118
119
  writable: true,
119
120
  private: true
120
121
  }
@@ -1,6 +1,6 @@
1
1
  import { optionJSON } from "./attribute.mjs";
2
2
  import { BaseObject } from "./base-object.mjs";
3
- import { name, url, description, id } from "./attributes.mjs";
3
+ import { name_attribute, url, description, id } from "./attributes.mjs";
4
4
 
5
5
  /**
6
6
  * Object with a name.
@@ -16,7 +16,7 @@ export class NamedObject extends BaseObject {
16
16
  */
17
17
  static get attributes() {
18
18
  return {
19
- name,
19
+ name: name_attribute,
20
20
  id,
21
21
  description,
22
22
 
@@ -48,13 +48,6 @@ export class NamedObject extends BaseObject {
48
48
  );
49
49
  }
50
50
 
51
- /**
52
- * @return {string} name with owner name
53
- */
54
- get fullName() {
55
- return this.owner ? this.owner.name + "/" + this.name : this.name;
56
- }
57
-
58
51
  /**
59
52
  * Provided name and all defined attributes.
60
53
  */
@@ -63,6 +63,13 @@ export class OwnedObject extends NamedObject {
63
63
  return `${this.provider.name}:${this.fullCondensedName}`;
64
64
  }
65
65
 
66
+ /**
67
+ * @return {string} name with owner name
68
+ */
69
+ get fullName() {
70
+ return this.owner.name + "/" + this.name;
71
+ }
72
+
66
73
  /**
67
74
  * Forwarded to the owner.
68
75
  * @param {...any} args