repository-provider 30.1.3 → 30.2.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": "repository-provider",
3
- "version": "30.1.3",
3
+ "version": "30.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -5,6 +5,14 @@ import { definePropertiesFromOptions, mapAttributes } from "./attribute.mjs";
5
5
  * @param {Object} additionalProperties
6
6
  */
7
7
  export class BaseObject {
8
+
9
+ /**
10
+ * @return {string} type we represent
11
+ */
12
+ static get type() {
13
+ return this.name.toLocaleLowerCase();
14
+ }
15
+
8
16
  /**
9
17
  * Attributes definitions
10
18
  */
@@ -22,6 +22,11 @@ import { BaseObject } from "./base-object.mjs";
22
22
  * @property {MessageDestination} messageDestination
23
23
  */
24
24
  export class BaseProvider extends BaseObject {
25
+
26
+ static get type() {
27
+ return "provider";
28
+ }
29
+
25
30
  /**
26
31
  * @return {string} identifier for environment options
27
32
  */
@@ -25,6 +25,7 @@ import { BaseProvider } from "./base-provider.mjs";
25
25
  * @property {Map<string,Milestone>} milestones
26
26
  */
27
27
  export class Repository extends OwnedObject {
28
+
28
29
  static get addMethodName() {
29
30
  return "_addRepository";
30
31
  }