@knowledge-stack/ksapi 3.10.1 → 3.11.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@3.10.1
1
+ # @knowledge-stack/ksapi@3.11.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -740,7 +740,7 @@ and is automatically generated by the
740
740
  [OpenAPI Generator](https://openapi-generator.tech) project:
741
741
 
742
742
  - API version: `0.1.0`
743
- - Package version: `3.10.1`
743
+ - Package version: `3.11.0`
744
744
  - Generator version: `7.21.0`
745
745
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
746
746
 
@@ -53,13 +53,13 @@ export interface FeedbackEventResponse {
53
53
  * @type {FeedbackReason}
54
54
  * @memberof FeedbackEventResponse
55
55
  */
56
- reason: FeedbackReason;
56
+ reason?: FeedbackReason;
57
57
  /**
58
58
  *
59
59
  * @type {string}
60
60
  * @memberof FeedbackEventResponse
61
61
  */
62
- comment: string | null;
62
+ comment?: string | null;
63
63
  /**
64
64
  *
65
65
  * @type {{ [key: string]: any; }}
@@ -29,10 +29,6 @@ export function instanceOfFeedbackEventResponse(value) {
29
29
  return false;
30
30
  if (!('rating' in value) || value['rating'] === undefined)
31
31
  return false;
32
- if (!('reason' in value) || value['reason'] === undefined)
33
- return false;
34
- if (!('comment' in value) || value['comment'] === undefined)
35
- return false;
36
32
  if (!('extraMetadata' in value) || value['extraMetadata'] === undefined)
37
33
  return false;
38
34
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -54,8 +50,8 @@ export function FeedbackEventResponseFromJSONTyped(json, ignoreDiscriminator) {
54
50
  'targetId': json['target_id'],
55
51
  'userId': json['user_id'],
56
52
  'rating': FeedbackRatingFromJSON(json['rating']),
57
- 'reason': FeedbackReasonFromJSON(json['reason']),
58
- 'comment': json['comment'],
53
+ 'reason': json['reason'] == null ? undefined : FeedbackReasonFromJSON(json['reason']),
54
+ 'comment': json['comment'] == null ? undefined : json['comment'],
59
55
  'extraMetadata': json['extra_metadata'],
60
56
  'createdAt': (new Date(json['created_at'])),
61
57
  'updatedAt': (new Date(json['updated_at'])),
@@ -53,13 +53,13 @@ export interface FeedbackEventResponse {
53
53
  * @type {FeedbackReason}
54
54
  * @memberof FeedbackEventResponse
55
55
  */
56
- reason: FeedbackReason;
56
+ reason?: FeedbackReason;
57
57
  /**
58
58
  *
59
59
  * @type {string}
60
60
  * @memberof FeedbackEventResponse
61
61
  */
62
- comment: string | null;
62
+ comment?: string | null;
63
63
  /**
64
64
  *
65
65
  * @type {{ [key: string]: any; }}
@@ -37,10 +37,6 @@ function instanceOfFeedbackEventResponse(value) {
37
37
  return false;
38
38
  if (!('rating' in value) || value['rating'] === undefined)
39
39
  return false;
40
- if (!('reason' in value) || value['reason'] === undefined)
41
- return false;
42
- if (!('comment' in value) || value['comment'] === undefined)
43
- return false;
44
40
  if (!('extraMetadata' in value) || value['extraMetadata'] === undefined)
45
41
  return false;
46
42
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -62,8 +58,8 @@ function FeedbackEventResponseFromJSONTyped(json, ignoreDiscriminator) {
62
58
  'targetId': json['target_id'],
63
59
  'userId': json['user_id'],
64
60
  'rating': (0, FeedbackRating_1.FeedbackRatingFromJSON)(json['rating']),
65
- 'reason': (0, FeedbackReason_1.FeedbackReasonFromJSON)(json['reason']),
66
- 'comment': json['comment'],
61
+ 'reason': json['reason'] == null ? undefined : (0, FeedbackReason_1.FeedbackReasonFromJSON)(json['reason']),
62
+ 'comment': json['comment'] == null ? undefined : json['comment'],
67
63
  'extraMetadata': json['extra_metadata'],
68
64
  'createdAt': (new Date(json['created_at'])),
69
65
  'updatedAt': (new Date(json['updated_at'])),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "3.10.1",
3
+ "version": "3.11.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -76,13 +76,13 @@ export interface FeedbackEventResponse {
76
76
  * @type {FeedbackReason}
77
77
  * @memberof FeedbackEventResponse
78
78
  */
79
- reason: FeedbackReason;
79
+ reason?: FeedbackReason;
80
80
  /**
81
81
  *
82
82
  * @type {string}
83
83
  * @memberof FeedbackEventResponse
84
84
  */
85
- comment: string | null;
85
+ comment?: string | null;
86
86
  /**
87
87
  *
88
88
  * @type {{ [key: string]: any; }}
@@ -131,8 +131,6 @@ export function instanceOfFeedbackEventResponse(value: object): value is Feedbac
131
131
  if (!('targetId' in value) || value['targetId'] === undefined) return false;
132
132
  if (!('userId' in value) || value['userId'] === undefined) return false;
133
133
  if (!('rating' in value) || value['rating'] === undefined) return false;
134
- if (!('reason' in value) || value['reason'] === undefined) return false;
135
- if (!('comment' in value) || value['comment'] === undefined) return false;
136
134
  if (!('extraMetadata' in value) || value['extraMetadata'] === undefined) return false;
137
135
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
138
136
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
@@ -154,8 +152,8 @@ export function FeedbackEventResponseFromJSONTyped(json: any, ignoreDiscriminato
154
152
  'targetId': json['target_id'],
155
153
  'userId': json['user_id'],
156
154
  'rating': FeedbackRatingFromJSON(json['rating']),
157
- 'reason': FeedbackReasonFromJSON(json['reason']),
158
- 'comment': json['comment'],
155
+ 'reason': json['reason'] == null ? undefined : FeedbackReasonFromJSON(json['reason']),
156
+ 'comment': json['comment'] == null ? undefined : json['comment'],
159
157
  'extraMetadata': json['extra_metadata'],
160
158
  'createdAt': (new Date(json['created_at'])),
161
159
  'updatedAt': (new Date(json['updated_at'])),