keplar-api 0.0.12 → 0.0.13

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.
Files changed (157) hide show
  1. package/.openapi-generator/FILES +31 -4
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +112 -8
  4. package/dist/apis/DefaultApi.js +503 -2
  5. package/dist/models/ApiProjectsProjectIdAnalysisPostRequest.d.ts +33 -0
  6. package/dist/models/ApiProjectsProjectIdAnalysisPostRequest.js +52 -0
  7. package/dist/models/ApiProjectsProjectIdAnalysisPostRequestKind.d.ts +26 -0
  8. package/dist/models/ApiProjectsProjectIdAnalysisPostRequestKind.js +39 -0
  9. package/dist/models/Artifact.d.ts +104 -0
  10. package/dist/models/Artifact.js +91 -0
  11. package/dist/models/ArtifactDataThematicAnalysis.d.ts +46 -0
  12. package/dist/models/ArtifactDataThematicAnalysis.js +63 -0
  13. package/dist/models/ArtifactDataThematicAnalysisData.d.ts +45 -0
  14. package/dist/models/ArtifactDataThematicAnalysisData.js +58 -0
  15. package/dist/models/ArtifactDataThematicAnalysisDataThemesInner.d.ts +38 -0
  16. package/dist/models/ArtifactDataThematicAnalysisDataThemesInner.js +55 -0
  17. package/dist/models/ArtifactKind.d.ts +24 -0
  18. package/dist/models/ArtifactKind.js +50 -0
  19. package/dist/models/ArtifactMetadata.d.ts +45 -0
  20. package/dist/models/ArtifactMetadata.js +56 -0
  21. package/dist/models/ArtifactMetadataStatus.d.ts +26 -0
  22. package/dist/models/ArtifactMetadataStatus.js +39 -0
  23. package/dist/models/Attribute.d.ts +13 -1
  24. package/dist/models/Attribute.js +9 -3
  25. package/dist/models/AttributeKind.d.ts +20 -1
  26. package/dist/models/AttributeKind.js +9 -2
  27. package/dist/models/AttributeKindGroup.d.ts +123 -0
  28. package/dist/models/AttributeKindGroup.js +102 -0
  29. package/dist/models/AttributeKindGroupPurpose.d.ts +25 -0
  30. package/dist/models/AttributeKindGroupPurpose.js +51 -0
  31. package/dist/models/AttributeKindGroupScope.d.ts +26 -0
  32. package/dist/models/AttributeKindGroupScope.js +52 -0
  33. package/dist/models/AttributeStatsSchemaInner.d.ts +7 -0
  34. package/dist/models/AttributeStatsSchemaInner.js +3 -0
  35. package/dist/models/AttributeStatsSchemaInnerGroup.d.ts +39 -0
  36. package/dist/models/AttributeStatsSchemaInnerGroup.js +56 -0
  37. package/dist/models/AttributeStatsSchemaInnerKind.d.ts +1 -1
  38. package/dist/models/AttributeStatsSchemaInnerKind.js +3 -3
  39. package/dist/models/AttributeStatsSchemaInnerValuesInner.d.ts +6 -0
  40. package/dist/models/AttributeStatsSchemaInnerValuesInner.js +4 -0
  41. package/dist/models/CallAnalysis.d.ts +38 -0
  42. package/dist/models/CallAnalysis.js +51 -0
  43. package/dist/models/CallMetadata.d.ts +7 -0
  44. package/dist/models/CallMetadata.js +3 -0
  45. package/dist/models/CreateArtifactRequest.d.ts +39 -0
  46. package/dist/models/CreateArtifactRequest.js +56 -0
  47. package/dist/models/DeleteArtifact200Response.d.ts +32 -0
  48. package/dist/models/DeleteArtifact200Response.js +51 -0
  49. package/dist/models/Evidence.d.ts +44 -0
  50. package/dist/models/Evidence.js +53 -0
  51. package/dist/models/InviteResponseAttribute.d.ts +4 -10
  52. package/dist/models/InviteResponseAttribute.js +6 -12
  53. package/dist/models/InviteResponseAttributeData.d.ts +39 -0
  54. package/dist/models/InviteResponseAttributeData.js +52 -0
  55. package/dist/models/InviteResponseWithMetadata.d.ts +39 -0
  56. package/dist/models/InviteResponseWithMetadata.js +56 -0
  57. package/dist/models/InviteResponseWithMetadataAttributesInner.d.ts +51 -0
  58. package/dist/models/InviteResponseWithMetadataAttributesInner.js +62 -0
  59. package/dist/models/InviteResponseWithMetadataAttributesInnerEvidence.d.ts +44 -0
  60. package/dist/models/InviteResponseWithMetadataAttributesInnerEvidence.js +53 -0
  61. package/dist/models/NumberFilterSchema.d.ts +1 -1
  62. package/dist/models/NumberFilterSchema.js +3 -3
  63. package/dist/models/Org.d.ts +7 -0
  64. package/dist/models/Org.js +3 -0
  65. package/dist/models/ParticipantAttribute.d.ts +1 -14
  66. package/dist/models/ParticipantAttribute.js +3 -12
  67. package/dist/models/Project.d.ts +19 -5
  68. package/dist/models/Project.js +11 -5
  69. package/dist/models/ProjectWithAnalytics.d.ts +19 -5
  70. package/dist/models/ProjectWithAnalytics.js +11 -5
  71. package/dist/models/SearchResponseMessages200ResponseInner.d.ts +74 -0
  72. package/dist/models/{ApiCallMessagesSearchPost200ResponseInner.js → SearchResponseMessages200ResponseInner.js} +13 -13
  73. package/dist/models/SearchResponseMessagesRequest.d.ts +33 -0
  74. package/dist/models/SearchResponseMessagesRequest.js +52 -0
  75. package/dist/models/SearchResponseMessagesRequestInviteResponseMessagesInner.d.ts +38 -0
  76. package/dist/models/SearchResponseMessagesRequestInviteResponseMessagesInner.js +55 -0
  77. package/dist/models/SelectFilterSchema.d.ts +1 -1
  78. package/dist/models/SelectFilterSchema.js +3 -3
  79. package/dist/models/ThematicAnalysisArtifactCreateData.d.ts +52 -0
  80. package/dist/models/ThematicAnalysisArtifactCreateData.js +61 -0
  81. package/dist/models/ThematicAnalysisArtifactCreateDataThemesInner.d.ts +45 -0
  82. package/dist/models/ThematicAnalysisArtifactCreateDataThemesInner.js +60 -0
  83. package/dist/models/ThematicAnalysisArtifactCreateDataThemesInnerCodesInner.d.ts +38 -0
  84. package/dist/models/ThematicAnalysisArtifactCreateDataThemesInnerCodesInner.js +55 -0
  85. package/dist/models/ThematicAnalysisResponseCode.d.ts +39 -0
  86. package/dist/models/ThematicAnalysisResponseCode.js +56 -0
  87. package/dist/models/ThematicAnalysisResponseCodeCodesInner.d.ts +45 -0
  88. package/dist/models/ThematicAnalysisResponseCodeCodesInner.js +60 -0
  89. package/dist/models/ThematicAnalysisResponseCodeCodesInnerEvidence.d.ts +44 -0
  90. package/dist/models/ThematicAnalysisResponseCodeCodesInnerEvidence.js +59 -0
  91. package/dist/models/Transcript.d.ts +6 -0
  92. package/dist/models/Transcript.js +4 -0
  93. package/dist/models/UpdateArtifactRequest.d.ts +40 -0
  94. package/dist/models/UpdateArtifactRequest.js +53 -0
  95. package/dist/models/User.d.ts +14 -0
  96. package/dist/models/User.js +6 -0
  97. package/dist/models/index.d.ts +31 -4
  98. package/dist/models/index.js +31 -4
  99. package/package.json +1 -1
  100. package/src/apis/DefaultApi.ts +527 -15
  101. package/src/models/ApiProjectsProjectIdAnalysisPostRequest.ts +74 -0
  102. package/src/models/ApiProjectsProjectIdAnalysisPostRequestKind.ts +46 -0
  103. package/src/models/Artifact.ts +205 -0
  104. package/src/models/ArtifactDataThematicAnalysis.ts +93 -0
  105. package/src/models/ArtifactDataThematicAnalysisData.ts +91 -0
  106. package/src/models/ArtifactDataThematicAnalysisDataThemesInner.ts +75 -0
  107. package/src/models/ArtifactKind.ts +52 -0
  108. package/src/models/ArtifactMetadata.ts +90 -0
  109. package/src/models/ArtifactMetadataStatus.ts +46 -0
  110. package/src/models/Attribute.ts +21 -4
  111. package/src/models/AttributeKind.ts +34 -3
  112. package/src/models/AttributeKindGroup.ts +238 -0
  113. package/src/models/AttributeKindGroupPurpose.ts +53 -0
  114. package/src/models/AttributeKindGroupScope.ts +54 -0
  115. package/src/models/AttributeStatsSchemaInner.ts +15 -0
  116. package/src/models/AttributeStatsSchemaInnerGroup.ts +85 -0
  117. package/src/models/AttributeStatsSchemaInnerKind.ts +4 -4
  118. package/src/models/AttributeStatsSchemaInnerValuesInner.ts +9 -0
  119. package/src/models/CallAnalysis.ts +73 -0
  120. package/src/models/CallMetadata.ts +16 -0
  121. package/src/models/CreateArtifactRequest.ts +75 -0
  122. package/src/models/DeleteArtifact200Response.ts +66 -0
  123. package/src/models/Evidence.ts +81 -0
  124. package/src/models/InviteResponseAttribute.ts +15 -27
  125. package/src/models/InviteResponseAttributeData.ts +81 -0
  126. package/src/models/InviteResponseWithMetadata.ts +83 -0
  127. package/src/models/InviteResponseWithMetadataAttributesInner.ts +100 -0
  128. package/src/models/InviteResponseWithMetadataAttributesInnerEvidence.ts +81 -0
  129. package/src/models/NumberFilterSchema.ts +4 -4
  130. package/src/models/Org.ts +15 -0
  131. package/src/models/ParticipantAttribute.ts +4 -31
  132. package/src/models/Project.ts +64 -34
  133. package/src/models/ProjectWithAnalytics.ts +65 -35
  134. package/src/models/{ApiCallMessagesSearchPost200ResponseInner.ts → SearchResponseMessages200ResponseInner.ts} +18 -18
  135. package/src/models/SearchResponseMessagesRequest.ts +74 -0
  136. package/src/models/SearchResponseMessagesRequestInviteResponseMessagesInner.ts +75 -0
  137. package/src/models/SelectFilterSchema.ts +4 -4
  138. package/src/models/ThematicAnalysisArtifactCreateData.ts +106 -0
  139. package/src/models/ThematicAnalysisArtifactCreateDataThemesInner.ts +92 -0
  140. package/src/models/ThematicAnalysisArtifactCreateDataThemesInnerCodesInner.ts +75 -0
  141. package/src/models/ThematicAnalysisResponseCode.ts +83 -0
  142. package/src/models/ThematicAnalysisResponseCodeCodesInner.ts +92 -0
  143. package/src/models/ThematicAnalysisResponseCodeCodesInnerEvidence.ts +84 -0
  144. package/src/models/Transcript.ts +9 -0
  145. package/src/models/UpdateArtifactRequest.ts +88 -0
  146. package/src/models/User.ts +30 -0
  147. package/src/models/index.ts +31 -4
  148. package/dist/models/ApiCallMessagesSearchPost200ResponseInner.d.ts +0 -74
  149. package/dist/models/AttributeSource.d.ts +0 -25
  150. package/dist/models/AttributeSource.js +0 -51
  151. package/dist/models/DeleteEmailShare200Response.d.ts +0 -32
  152. package/dist/models/DeleteEmailShare200Response.js +0 -51
  153. package/dist/models/GetProjectResponsesResponse.d.ts +0 -51
  154. package/dist/models/GetProjectResponsesResponse.js +0 -64
  155. package/src/models/AttributeSource.ts +0 -53
  156. package/src/models/DeleteEmailShare200Response.ts +0 -66
  157. package/src/models/GetProjectResponsesResponse.ts +0 -101
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ArtifactMetadataStatus } from './ArtifactMetadataStatus';
17
+ import {
18
+ ArtifactMetadataStatusFromJSON,
19
+ ArtifactMetadataStatusFromJSONTyped,
20
+ ArtifactMetadataStatusToJSON,
21
+ ArtifactMetadataStatusToJSONTyped,
22
+ } from './ArtifactMetadataStatus';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ArtifactMetadata
28
+ */
29
+ export interface ArtifactMetadata {
30
+ /**
31
+ *
32
+ * @type {ArtifactMetadataStatus}
33
+ * @memberof ArtifactMetadata
34
+ */
35
+ status: ArtifactMetadataStatus;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ArtifactMetadata
40
+ */
41
+ statusMessage?: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ArtifactMetadata
46
+ */
47
+ progress?: number;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the ArtifactMetadata interface.
52
+ */
53
+ export function instanceOfArtifactMetadata(value: object): value is ArtifactMetadata {
54
+ if (!('status' in value) || value['status'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function ArtifactMetadataFromJSON(json: any): ArtifactMetadata {
59
+ return ArtifactMetadataFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function ArtifactMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactMetadata {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'status': ArtifactMetadataStatusFromJSON(json['status']),
69
+ 'statusMessage': json['statusMessage'] == null ? undefined : json['statusMessage'],
70
+ 'progress': json['progress'] == null ? undefined : json['progress'],
71
+ };
72
+ }
73
+
74
+ export function ArtifactMetadataToJSON(json: any): ArtifactMetadata {
75
+ return ArtifactMetadataToJSONTyped(json, false);
76
+ }
77
+
78
+ export function ArtifactMetadataToJSONTyped(value?: ArtifactMetadata | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'status': ArtifactMetadataStatusToJSON(value['status']),
86
+ 'statusMessage': value['statusMessage'],
87
+ 'progress': value['progress'],
88
+ };
89
+ }
90
+
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ArtifactMetadataStatus
20
+ */
21
+ export interface ArtifactMetadataStatus {
22
+ }
23
+
24
+ /**
25
+ * Check if a given object implements the ArtifactMetadataStatus interface.
26
+ */
27
+ export function instanceOfArtifactMetadataStatus(value: object): value is ArtifactMetadataStatus {
28
+ return true;
29
+ }
30
+
31
+ export function ArtifactMetadataStatusFromJSON(json: any): ArtifactMetadataStatus {
32
+ return ArtifactMetadataStatusFromJSONTyped(json, false);
33
+ }
34
+
35
+ export function ArtifactMetadataStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactMetadataStatus {
36
+ return json;
37
+ }
38
+
39
+ export function ArtifactMetadataStatusToJSON(json: any): ArtifactMetadataStatus {
40
+ return ArtifactMetadataStatusToJSONTyped(json, false);
41
+ }
42
+
43
+ export function ArtifactMetadataStatusToJSONTyped(value?: ArtifactMetadataStatus | null, ignoreDiscriminator: boolean = false): any {
44
+ return value;
45
+ }
46
+
@@ -46,13 +46,25 @@ export interface Attribute {
46
46
  * @type {string}
47
47
  * @memberof Attribute
48
48
  */
49
- attributeKindKey: string;
49
+ id: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof Attribute
54
+ */
55
+ attributeKindId: string;
50
56
  /**
51
57
  *
52
58
  * @type {string}
53
59
  * @memberof Attribute
54
60
  */
55
61
  value: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof Attribute
66
+ */
67
+ description?: string | null;
56
68
  /**
57
69
  *
58
70
  * @type {Date}
@@ -83,7 +95,8 @@ export interface Attribute {
83
95
  * Check if a given object implements the Attribute interface.
84
96
  */
85
97
  export function instanceOfAttribute(value: object): value is Attribute {
86
- if (!('attributeKindKey' in value) || value['attributeKindKey'] === undefined) return false;
98
+ if (!('id' in value) || value['id'] === undefined) return false;
99
+ if (!('attributeKindId' in value) || value['attributeKindId'] === undefined) return false;
87
100
  if (!('value' in value) || value['value'] === undefined) return false;
88
101
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
89
102
  return true;
@@ -99,8 +112,10 @@ export function AttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean):
99
112
  }
100
113
  return {
101
114
 
102
- 'attributeKindKey': json['attributeKindKey'],
115
+ 'id': json['id'],
116
+ 'attributeKindId': json['attributeKindId'],
103
117
  'value': json['value'],
118
+ 'description': json['description'] == null ? undefined : json['description'],
104
119
  'createdAt': (new Date(json['createdAt'])),
105
120
  'attributeKind': json['attributeKind'] == null ? undefined : AttributeKindFromJSON(json['attributeKind']),
106
121
  'participantAttributes': json['participantAttributes'] == null ? undefined : ((json['participantAttributes'] as Array<any>).map(ParticipantAttributeFromJSON)),
@@ -119,8 +134,10 @@ export function AttributeToJSONTyped(value?: Attribute | null, ignoreDiscriminat
119
134
 
120
135
  return {
121
136
 
122
- 'attributeKindKey': value['attributeKindKey'],
137
+ 'id': value['id'],
138
+ 'attributeKindId': value['attributeKindId'],
123
139
  'value': value['value'],
140
+ 'description': value['description'],
124
141
  'createdAt': ((value['createdAt']).toISOString()),
125
142
  'attributeKind': AttributeKindToJSON(value['attributeKind']),
126
143
  'participantAttributes': value['participantAttributes'] == null ? undefined : ((value['participantAttributes'] as Array<any>).map(ParticipantAttributeToJSON)),
@@ -20,6 +20,13 @@ import {
20
20
  AttributeToJSON,
21
21
  AttributeToJSONTyped,
22
22
  } from './Attribute';
23
+ import type { AttributeKindGroup } from './AttributeKindGroup';
24
+ import {
25
+ AttributeKindGroupFromJSON,
26
+ AttributeKindGroupFromJSONTyped,
27
+ AttributeKindGroupToJSON,
28
+ AttributeKindGroupToJSONTyped,
29
+ } from './AttributeKindGroup';
23
30
  import type { AttributeValueKind } from './AttributeValueKind';
24
31
  import {
25
32
  AttributeValueKindFromJSON,
@@ -39,7 +46,13 @@ export interface AttributeKind {
39
46
  * @type {string}
40
47
  * @memberof AttributeKind
41
48
  */
42
- key: string;
49
+ id: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof AttributeKind
54
+ */
55
+ key?: string | null;
43
56
  /**
44
57
  *
45
58
  * @type {string}
@@ -76,12 +89,24 @@ export interface AttributeKind {
76
89
  * @memberof AttributeKind
77
90
  */
78
91
  updatedAt: Date;
92
+ /**
93
+ *
94
+ * @type {string}
95
+ * @memberof AttributeKind
96
+ */
97
+ attributeKindGroupId?: string | null;
79
98
  /**
80
99
  *
81
100
  * @type {Array<Attribute>}
82
101
  * @memberof AttributeKind
83
102
  */
84
103
  attributes?: Array<Attribute>;
104
+ /**
105
+ *
106
+ * @type {AttributeKindGroup}
107
+ * @memberof AttributeKind
108
+ */
109
+ attributeKindGroup?: AttributeKindGroup | null;
85
110
  }
86
111
 
87
112
 
@@ -90,7 +115,7 @@ export interface AttributeKind {
90
115
  * Check if a given object implements the AttributeKind interface.
91
116
  */
92
117
  export function instanceOfAttributeKind(value: object): value is AttributeKind {
93
- if (!('key' in value) || value['key'] === undefined) return false;
118
+ if (!('id' in value) || value['id'] === undefined) return false;
94
119
  if (!('label' in value) || value['label'] === undefined) return false;
95
120
  if (!('valueKind' in value) || value['valueKind'] === undefined) return false;
96
121
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
@@ -108,14 +133,17 @@ export function AttributeKindFromJSONTyped(json: any, ignoreDiscriminator: boole
108
133
  }
109
134
  return {
110
135
 
111
- 'key': json['key'],
136
+ 'id': json['id'],
137
+ 'key': json['key'] == null ? undefined : json['key'],
112
138
  'label': json['label'],
113
139
  'valueKind': AttributeValueKindFromJSON(json['valueKind']),
114
140
  'description': json['description'] == null ? undefined : json['description'],
115
141
  'category': json['category'] == null ? undefined : json['category'],
116
142
  'createdAt': (new Date(json['createdAt'])),
117
143
  'updatedAt': (new Date(json['updatedAt'])),
144
+ 'attributeKindGroupId': json['attributeKindGroupId'] == null ? undefined : json['attributeKindGroupId'],
118
145
  'attributes': json['attributes'] == null ? undefined : ((json['attributes'] as Array<any>).map(AttributeFromJSON)),
146
+ 'attributeKindGroup': json['attributeKindGroup'] == null ? undefined : AttributeKindGroupFromJSON(json['attributeKindGroup']),
119
147
  };
120
148
  }
121
149
 
@@ -130,6 +158,7 @@ export function AttributeKindToJSONTyped(value?: AttributeKind | null, ignoreDis
130
158
 
131
159
  return {
132
160
 
161
+ 'id': value['id'],
133
162
  'key': value['key'],
134
163
  'label': value['label'],
135
164
  'valueKind': AttributeValueKindToJSON(value['valueKind']),
@@ -137,7 +166,9 @@ export function AttributeKindToJSONTyped(value?: AttributeKind | null, ignoreDis
137
166
  'category': value['category'],
138
167
  'createdAt': ((value['createdAt']).toISOString()),
139
168
  'updatedAt': ((value['updatedAt']).toISOString()),
169
+ 'attributeKindGroupId': value['attributeKindGroupId'],
140
170
  'attributes': value['attributes'] == null ? undefined : ((value['attributes'] as Array<any>).map(AttributeToJSON)),
171
+ 'attributeKindGroup': AttributeKindGroupToJSON(value['attributeKindGroup']),
141
172
  };
142
173
  }
143
174
 
@@ -0,0 +1,238 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { Project } from './Project';
17
+ import {
18
+ ProjectFromJSON,
19
+ ProjectFromJSONTyped,
20
+ ProjectToJSON,
21
+ ProjectToJSONTyped,
22
+ } from './Project';
23
+ import type { User } from './User';
24
+ import {
25
+ UserFromJSON,
26
+ UserFromJSONTyped,
27
+ UserToJSON,
28
+ UserToJSONTyped,
29
+ } from './User';
30
+ import type { Org } from './Org';
31
+ import {
32
+ OrgFromJSON,
33
+ OrgFromJSONTyped,
34
+ OrgToJSON,
35
+ OrgToJSONTyped,
36
+ } from './Org';
37
+ import type { AttributeKindGroupPurpose } from './AttributeKindGroupPurpose';
38
+ import {
39
+ AttributeKindGroupPurposeFromJSON,
40
+ AttributeKindGroupPurposeFromJSONTyped,
41
+ AttributeKindGroupPurposeToJSON,
42
+ AttributeKindGroupPurposeToJSONTyped,
43
+ } from './AttributeKindGroupPurpose';
44
+ import type { AttributeKindGroupScope } from './AttributeKindGroupScope';
45
+ import {
46
+ AttributeKindGroupScopeFromJSON,
47
+ AttributeKindGroupScopeFromJSONTyped,
48
+ AttributeKindGroupScopeToJSON,
49
+ AttributeKindGroupScopeToJSONTyped,
50
+ } from './AttributeKindGroupScope';
51
+ import type { AttributeKind } from './AttributeKind';
52
+ import {
53
+ AttributeKindFromJSON,
54
+ AttributeKindFromJSONTyped,
55
+ AttributeKindToJSON,
56
+ AttributeKindToJSONTyped,
57
+ } from './AttributeKind';
58
+ import type { Artifact } from './Artifact';
59
+ import {
60
+ ArtifactFromJSON,
61
+ ArtifactFromJSONTyped,
62
+ ArtifactToJSON,
63
+ ArtifactToJSONTyped,
64
+ } from './Artifact';
65
+
66
+ /**
67
+ *
68
+ * @export
69
+ * @interface AttributeKindGroup
70
+ */
71
+ export interface AttributeKindGroup {
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof AttributeKindGroup
76
+ */
77
+ id: string;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof AttributeKindGroup
82
+ */
83
+ name: string;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof AttributeKindGroup
88
+ */
89
+ description?: string | null;
90
+ /**
91
+ *
92
+ * @type {AttributeKindGroupScope}
93
+ * @memberof AttributeKindGroup
94
+ */
95
+ scope: AttributeKindGroupScope;
96
+ /**
97
+ *
98
+ * @type {AttributeKindGroupPurpose}
99
+ * @memberof AttributeKindGroup
100
+ */
101
+ purpose: AttributeKindGroupPurpose;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof AttributeKindGroup
106
+ */
107
+ orgId: string;
108
+ /**
109
+ *
110
+ * @type {string}
111
+ * @memberof AttributeKindGroup
112
+ */
113
+ projectId: string;
114
+ /**
115
+ *
116
+ * @type {string}
117
+ * @memberof AttributeKindGroup
118
+ */
119
+ createdById: string;
120
+ /**
121
+ *
122
+ * @type {Date}
123
+ * @memberof AttributeKindGroup
124
+ */
125
+ createdAt: Date;
126
+ /**
127
+ *
128
+ * @type {Date}
129
+ * @memberof AttributeKindGroup
130
+ */
131
+ updatedAt: Date;
132
+ /**
133
+ *
134
+ * @type {Org}
135
+ * @memberof AttributeKindGroup
136
+ */
137
+ org?: Org;
138
+ /**
139
+ *
140
+ * @type {Project}
141
+ * @memberof AttributeKindGroup
142
+ */
143
+ project?: Project;
144
+ /**
145
+ *
146
+ * @type {User}
147
+ * @memberof AttributeKindGroup
148
+ */
149
+ createdBy?: User;
150
+ /**
151
+ *
152
+ * @type {Array<AttributeKind>}
153
+ * @memberof AttributeKindGroup
154
+ */
155
+ attributeKinds?: Array<AttributeKind>;
156
+ /**
157
+ *
158
+ * @type {Array<Artifact>}
159
+ * @memberof AttributeKindGroup
160
+ */
161
+ artifacts?: Array<Artifact>;
162
+ }
163
+
164
+
165
+
166
+ /**
167
+ * Check if a given object implements the AttributeKindGroup interface.
168
+ */
169
+ export function instanceOfAttributeKindGroup(value: object): value is AttributeKindGroup {
170
+ if (!('id' in value) || value['id'] === undefined) return false;
171
+ if (!('name' in value) || value['name'] === undefined) return false;
172
+ if (!('scope' in value) || value['scope'] === undefined) return false;
173
+ if (!('purpose' in value) || value['purpose'] === undefined) return false;
174
+ if (!('orgId' in value) || value['orgId'] === undefined) return false;
175
+ if (!('projectId' in value) || value['projectId'] === undefined) return false;
176
+ if (!('createdById' in value) || value['createdById'] === undefined) return false;
177
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
178
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
179
+ return true;
180
+ }
181
+
182
+ export function AttributeKindGroupFromJSON(json: any): AttributeKindGroup {
183
+ return AttributeKindGroupFromJSONTyped(json, false);
184
+ }
185
+
186
+ export function AttributeKindGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeKindGroup {
187
+ if (json == null) {
188
+ return json;
189
+ }
190
+ return {
191
+
192
+ 'id': json['id'],
193
+ 'name': json['name'],
194
+ 'description': json['description'] == null ? undefined : json['description'],
195
+ 'scope': AttributeKindGroupScopeFromJSON(json['scope']),
196
+ 'purpose': AttributeKindGroupPurposeFromJSON(json['purpose']),
197
+ 'orgId': json['orgId'],
198
+ 'projectId': json['projectId'],
199
+ 'createdById': json['createdById'],
200
+ 'createdAt': (new Date(json['createdAt'])),
201
+ 'updatedAt': (new Date(json['updatedAt'])),
202
+ 'org': json['org'] == null ? undefined : OrgFromJSON(json['org']),
203
+ 'project': json['project'] == null ? undefined : ProjectFromJSON(json['project']),
204
+ 'createdBy': json['createdBy'] == null ? undefined : UserFromJSON(json['createdBy']),
205
+ 'attributeKinds': json['attributeKinds'] == null ? undefined : ((json['attributeKinds'] as Array<any>).map(AttributeKindFromJSON)),
206
+ 'artifacts': json['artifacts'] == null ? undefined : ((json['artifacts'] as Array<any>).map(ArtifactFromJSON)),
207
+ };
208
+ }
209
+
210
+ export function AttributeKindGroupToJSON(json: any): AttributeKindGroup {
211
+ return AttributeKindGroupToJSONTyped(json, false);
212
+ }
213
+
214
+ export function AttributeKindGroupToJSONTyped(value?: AttributeKindGroup | null, ignoreDiscriminator: boolean = false): any {
215
+ if (value == null) {
216
+ return value;
217
+ }
218
+
219
+ return {
220
+
221
+ 'id': value['id'],
222
+ 'name': value['name'],
223
+ 'description': value['description'],
224
+ 'scope': AttributeKindGroupScopeToJSON(value['scope']),
225
+ 'purpose': AttributeKindGroupPurposeToJSON(value['purpose']),
226
+ 'orgId': value['orgId'],
227
+ 'projectId': value['projectId'],
228
+ 'createdById': value['createdById'],
229
+ 'createdAt': ((value['createdAt']).toISOString()),
230
+ 'updatedAt': ((value['updatedAt']).toISOString()),
231
+ 'org': OrgToJSON(value['org']),
232
+ 'project': ProjectToJSON(value['project']),
233
+ 'createdBy': UserToJSON(value['createdBy']),
234
+ 'attributeKinds': value['attributeKinds'] == null ? undefined : ((value['attributeKinds'] as Array<any>).map(AttributeKindToJSON)),
235
+ 'artifacts': value['artifacts'] == null ? undefined : ((value['artifacts'] as Array<any>).map(ArtifactToJSON)),
236
+ };
237
+ }
238
+
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const AttributeKindGroupPurpose = {
21
+ ScreenerResponse: 'screener_response',
22
+ Codebook: 'codebook'
23
+ } as const;
24
+ export type AttributeKindGroupPurpose = typeof AttributeKindGroupPurpose[keyof typeof AttributeKindGroupPurpose];
25
+
26
+
27
+ export function instanceOfAttributeKindGroupPurpose(value: any): boolean {
28
+ for (const key in AttributeKindGroupPurpose) {
29
+ if (Object.prototype.hasOwnProperty.call(AttributeKindGroupPurpose, key)) {
30
+ if (AttributeKindGroupPurpose[key as keyof typeof AttributeKindGroupPurpose] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function AttributeKindGroupPurposeFromJSON(json: any): AttributeKindGroupPurpose {
39
+ return AttributeKindGroupPurposeFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AttributeKindGroupPurposeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeKindGroupPurpose {
43
+ return json as AttributeKindGroupPurpose;
44
+ }
45
+
46
+ export function AttributeKindGroupPurposeToJSON(value?: AttributeKindGroupPurpose | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function AttributeKindGroupPurposeToJSONTyped(value: any, ignoreDiscriminator: boolean): AttributeKindGroupPurpose {
51
+ return value as AttributeKindGroupPurpose;
52
+ }
53
+
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const AttributeKindGroupScope = {
21
+ Org: 'org',
22
+ Project: 'project',
23
+ Artifact: 'artifact'
24
+ } as const;
25
+ export type AttributeKindGroupScope = typeof AttributeKindGroupScope[keyof typeof AttributeKindGroupScope];
26
+
27
+
28
+ export function instanceOfAttributeKindGroupScope(value: any): boolean {
29
+ for (const key in AttributeKindGroupScope) {
30
+ if (Object.prototype.hasOwnProperty.call(AttributeKindGroupScope, key)) {
31
+ if (AttributeKindGroupScope[key as keyof typeof AttributeKindGroupScope] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function AttributeKindGroupScopeFromJSON(json: any): AttributeKindGroupScope {
40
+ return AttributeKindGroupScopeFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function AttributeKindGroupScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeKindGroupScope {
44
+ return json as AttributeKindGroupScope;
45
+ }
46
+
47
+ export function AttributeKindGroupScopeToJSON(value?: AttributeKindGroupScope | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function AttributeKindGroupScopeToJSONTyped(value: any, ignoreDiscriminator: boolean): AttributeKindGroupScope {
52
+ return value as AttributeKindGroupScope;
53
+ }
54
+
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { AttributeStatsSchemaInnerGroup } from './AttributeStatsSchemaInnerGroup';
17
+ import {
18
+ AttributeStatsSchemaInnerGroupFromJSON,
19
+ AttributeStatsSchemaInnerGroupFromJSONTyped,
20
+ AttributeStatsSchemaInnerGroupToJSON,
21
+ AttributeStatsSchemaInnerGroupToJSONTyped,
22
+ } from './AttributeStatsSchemaInnerGroup';
16
23
  import type { AttributeStatsSchemaInnerKind } from './AttributeStatsSchemaInnerKind';
17
24
  import {
18
25
  AttributeStatsSchemaInnerKindFromJSON,
@@ -40,6 +47,12 @@ export interface AttributeStatsSchemaInner {
40
47
  * @memberof AttributeStatsSchemaInner
41
48
  */
42
49
  kind: AttributeStatsSchemaInnerKind;
50
+ /**
51
+ *
52
+ * @type {AttributeStatsSchemaInnerGroup}
53
+ * @memberof AttributeStatsSchemaInner
54
+ */
55
+ group?: AttributeStatsSchemaInnerGroup;
43
56
  /**
44
57
  *
45
58
  * @type {Array<AttributeStatsSchemaInnerValuesInner>}
@@ -68,6 +81,7 @@ export function AttributeStatsSchemaInnerFromJSONTyped(json: any, ignoreDiscrimi
68
81
  return {
69
82
 
70
83
  'kind': AttributeStatsSchemaInnerKindFromJSON(json['kind']),
84
+ 'group': json['group'] == null ? undefined : AttributeStatsSchemaInnerGroupFromJSON(json['group']),
71
85
  'values': ((json['values'] as Array<any>).map(AttributeStatsSchemaInnerValuesInnerFromJSON)),
72
86
  };
73
87
  }
@@ -84,6 +98,7 @@ export function AttributeStatsSchemaInnerToJSONTyped(value?: AttributeStatsSchem
84
98
  return {
85
99
 
86
100
  'kind': AttributeStatsSchemaInnerKindToJSON(value['kind']),
101
+ 'group': AttributeStatsSchemaInnerGroupToJSON(value['group']),
87
102
  'values': ((value['values'] as Array<any>).map(AttributeStatsSchemaInnerValuesInnerToJSON)),
88
103
  };
89
104
  }