@trustify-da/trustify-da-api-model 2.0.5-ea.f9d6a21 → 2.0.6

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 CHANGED
@@ -20,7 +20,7 @@ The packages are published to the GitHub maven repository. Make sure to add it t
20
20
  <dependency>
21
21
  <groupId>io.github.guacsec</groupId>
22
22
  <artifactId>trustify-da-api-model</artifactId>
23
- <version>2.0.5-SNAPSHOT</version>
23
+ <version>2.0.6-SNAPSHOT</version>
24
24
  </dependency>
25
25
  ```
26
26
 
@@ -29,5 +29,5 @@ The packages are published to the GitHub maven repository. Make sure to add it t
29
29
  Add it to your project as follows:
30
30
 
31
31
  ```bash
32
- npm install @guacsec/trustify-da-api-model@2.0.5-SNAPSHOT
32
+ npm install @guacsec/trustify-da-api-model@2.0.6-SNAPSHOT
33
33
  ```
@@ -1 +1 @@
1
- 1e119953e6ee6338e11d93221551814d9bc2f59ddd954162be103ec5b350f381
1
+ 03e8e4be5bd03a22bd963f0532368e03c111837e898102be421699f0bce49e28
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+
14
+ export enum LicenseCategory {
15
+ Permissive = 'PERMISSIVE',
16
+ WeakCopyleft = 'WEAK_COPYLEFT',
17
+ StrongCopyleft = 'STRONG_COPYLEFT',
18
+ Unknown = 'UNKNOWN'
19
+ }
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Trustify Dependency Analytics API
3
+ * Trustify Dependency Analytics API
4
+ *
5
+ * OpenAPI spec version: 5.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { LicenseCategory } from './LicenseCategory';
14
+
15
+ export class LicenseIdentifier {
16
+ /**
17
+ * License identifier.
18
+ */
19
+ 'id': string;
20
+ /**
21
+ * Human readable license name.
22
+ */
23
+ 'name': string;
24
+ 'isDeprecated'?: boolean;
25
+ 'isOsiApproved'?: boolean;
26
+ 'isFsfLibre'?: boolean;
27
+ 'category': LicenseCategory;
28
+
29
+ static readonly discriminator: string | undefined = undefined;
30
+
31
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
32
+ {
33
+ "name": "id",
34
+ "baseName": "id",
35
+ "type": "string",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "name",
40
+ "baseName": "name",
41
+ "type": "string",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "isDeprecated",
46
+ "baseName": "isDeprecated",
47
+ "type": "boolean",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "isOsiApproved",
52
+ "baseName": "isOsiApproved",
53
+ "type": "boolean",
54
+ "format": ""
55
+ },
56
+ {
57
+ "name": "isFsfLibre",
58
+ "baseName": "isFsfLibre",
59
+ "type": "boolean",
60
+ "format": ""
61
+ },
62
+ {
63
+ "name": "category",
64
+ "baseName": "category",
65
+ "type": "LicenseCategory",
66
+ "format": ""
67
+ } ];
68
+
69
+ static getAttributeTypeMap() {
70
+ return LicenseIdentifier.attributeTypeMap;
71
+ }
72
+
73
+ public constructor() {
74
+ }
75
+ }
76
+
77
+
78
+
@@ -10,12 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
 
13
+ import { LicenseCategory } from './LicenseCategory';
14
+ import { LicenseIdentifier } from './LicenseIdentifier';
13
15
 
14
16
  export class LicenseInfo {
15
17
  /**
16
18
  * List of license identifiers found for the package
17
19
  */
18
- 'identifiers'?: Array<string>;
20
+ 'identifiers'?: Array<LicenseIdentifier>;
19
21
  /**
20
22
  * SPDX license expression
21
23
  */
@@ -24,10 +26,7 @@ export class LicenseInfo {
24
26
  * Human readable license name
25
27
  */
26
28
  'name'?: string;
27
- /**
28
- * Category of the license
29
- */
30
- 'category'?: LicenseInfoCategoryEnum;
29
+ 'category'?: LicenseCategory;
31
30
  /**
32
31
  * Source of the license information
33
32
  */
@@ -43,7 +42,7 @@ export class LicenseInfo {
43
42
  {
44
43
  "name": "identifiers",
45
44
  "baseName": "identifiers",
46
- "type": "Array<string>",
45
+ "type": "Array<LicenseIdentifier>",
47
46
  "format": ""
48
47
  },
49
48
  {
@@ -61,7 +60,7 @@ export class LicenseInfo {
61
60
  {
62
61
  "name": "category",
63
62
  "baseName": "category",
64
- "type": "LicenseInfoCategoryEnum",
63
+ "type": "LicenseCategory",
65
64
  "format": ""
66
65
  },
67
66
  {
@@ -86,10 +85,4 @@ export class LicenseInfo {
86
85
  }
87
86
 
88
87
 
89
- export enum LicenseInfoCategoryEnum {
90
- Permissive = 'PERMISSIVE',
91
- WeakCopyleft = 'WEAK_COPYLEFT',
92
- StrongCopyleft = 'STRONG_COPYLEFT',
93
- Unknown = 'UNKNOWN'
94
- }
95
88
 
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
 
13
+ import { LicenseInfo } from './LicenseInfo';
13
14
  import { LicensesSummary } from './LicensesSummary';
14
15
  import { PackageLicenseResult } from './PackageLicenseResult';
15
16
  import { ProviderStatus } from './ProviderStatus';
@@ -17,6 +18,7 @@ import { ProviderStatus } from './ProviderStatus';
17
18
  export class LicenseProviderResult {
18
19
  'status'?: ProviderStatus;
19
20
  'summary'?: LicensesSummary;
21
+ 'projectLicense'?: LicenseInfo;
20
22
  /**
21
23
  * Package purl as key, license result as value
22
24
  */
@@ -37,6 +39,12 @@ export class LicenseProviderResult {
37
39
  "type": "LicensesSummary",
38
40
  "format": ""
39
41
  },
42
+ {
43
+ "name": "projectLicense",
44
+ "baseName": "projectLicense",
45
+ "type": "LicenseInfo",
46
+ "format": ""
47
+ },
40
48
  {
41
49
  "name": "packages",
42
50
  "baseName": "packages",
@@ -24,6 +24,9 @@ export class LicensesSummary {
24
24
  'weakCopyleft'?: number;
25
25
  'strongCopyleft'?: number;
26
26
  'unknown'?: number;
27
+ 'deprecated'?: number;
28
+ 'osiApproved'?: number;
29
+ 'fsfLibre'?: number;
27
30
 
28
31
  static readonly discriminator: string | undefined = undefined;
29
32
 
@@ -48,13 +51,13 @@ export class LicensesSummary {
48
51
  },
49
52
  {
50
53
  "name": "weakCopyleft",
51
- "baseName": "weak-copyleft",
54
+ "baseName": "weakCopyleft",
52
55
  "type": "number",
53
56
  "format": ""
54
57
  },
55
58
  {
56
59
  "name": "strongCopyleft",
57
- "baseName": "strong-copyleft",
60
+ "baseName": "strongCopyleft",
58
61
  "type": "number",
59
62
  "format": ""
60
63
  },
@@ -63,6 +66,24 @@ export class LicensesSummary {
63
66
  "baseName": "unknown",
64
67
  "type": "number",
65
68
  "format": ""
69
+ },
70
+ {
71
+ "name": "deprecated",
72
+ "baseName": "deprecated",
73
+ "type": "number",
74
+ "format": ""
75
+ },
76
+ {
77
+ "name": "osiApproved",
78
+ "baseName": "osiApproved",
79
+ "type": "number",
80
+ "format": ""
81
+ },
82
+ {
83
+ "name": "fsfLibre",
84
+ "baseName": "fsfLibre",
85
+ "type": "number",
86
+ "format": ""
66
87
  } ];
67
88
 
68
89
  static getAttributeTypeMap() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustify-da/trustify-da-api-model",
3
- "version": "2.0.5-ea.f9d6a21",
3
+ "version": "2.0.6",
4
4
  "description": "Trustify :: Dependency Analytics :: API",
5
5
  "author": "Trustify Dependency Analytics Authors",
6
6
  "type": "commonjs",