@tourmalinecore/flamingo-api-js-client 1.4.0 → 1.5.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/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export declare enum WhatWentWrong {
3
3
  ErrorInResponse = "ErrorInResponse",
4
4
  NoLinksToSources = "NoLinksToSources",
5
5
  IncompleteAnswer = "IncompleteAnswer",
6
- DoesntAnswerMyQuestion = "DoesntAnswerMyQuestion",
6
+ DoesNotAnswerMyQuestion = "DoesNotAnswerMyQuestion",
7
7
  NotAllSourcesHaveBeenUsed = "NotAllSourcesHaveBeenUsed",
8
8
  SourcesAreNotRelevantToAnswer = "SourcesAreNotRelevantToAnswer",
9
9
  Other = "Other"
@@ -83,6 +83,13 @@ export interface FullSourceDto {
83
83
  /** Errormessage */
84
84
  errorMessage?: string | null;
85
85
  }
86
+ /** GetFeedbackResponse */
87
+ export interface GetFeedbackResponse {
88
+ /** Positivefeedbacklist */
89
+ positiveFeedbackList: PositiveFeedbackDto[];
90
+ /** Negativefeedbacklist */
91
+ negativeFeedbackList: NegativeFeedbackDto[];
92
+ }
86
93
  /** GetOneSourceResponse */
87
94
  export interface GetOneSourceResponse {
88
95
  /** Url */
@@ -103,7 +110,8 @@ export interface GetWorkspacesResponse {
103
110
  }
104
111
  /** GiveNegativeFeedbackRequest */
105
112
  export interface GiveNegativeFeedbackRequest {
106
- whatWentWrong: WhatWentWrong;
113
+ /** Whatwentwrong */
114
+ whatWentWrong: WhatWentWrong[];
107
115
  /** Problemdescriptioninfreeform */
108
116
  problemDescriptionInFreeForm: string | null;
109
117
  }
@@ -117,6 +125,20 @@ export interface HardDeleteResponse {
117
125
  /** Isdeleted */
118
126
  isDeleted: boolean;
119
127
  }
128
+ /** NegativeFeedbackDto */
129
+ export interface NegativeFeedbackDto {
130
+ /** Messageid */
131
+ messageId: number;
132
+ /** Whatwentwrong */
133
+ whatWentWrong: WhatWentWrong[];
134
+ /** Problemdescriptioninfreeform */
135
+ problemDescriptionInFreeForm: string | null;
136
+ }
137
+ /** PositiveFeedbackDto */
138
+ export interface PositiveFeedbackDto {
139
+ /** Messageid */
140
+ messageId: number;
141
+ }
120
142
  /** ReferenceDto */
121
143
  export interface ReferenceDto {
122
144
  source: ChatAnswerSourceDto;
@@ -220,7 +242,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
220
242
  }
221
243
  /**
222
244
  * @title flamingo-api
223
- * @version 0.1.0
245
+ * @version 1.5.0
224
246
  * @baseUrl /api
225
247
  */
226
248
  export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
@@ -348,11 +370,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
348
370
  * @description Used only for auto-testing
349
371
  *
350
372
  * @tags Chat operations
351
- * @name HardDeleteChatChatsChatsChatIdHardDeleteDelete
352
- * @summary Hard Delete Chat
353
- * @request DELETE:/chats/chats/{chatId}/hard-delete
373
+ * @name GetAllFeedbackOfAChatChatsChatIdFeedbackGet
374
+ * @summary Get All Feedback Of A Chat
375
+ * @request GET:/chats/{chatId}/feedback
354
376
  */
355
- hardDeleteChatChatsChatsChatIdHardDeleteDelete: (chatId: number, params?: RequestParams) => Promise<AxiosResponse<HardDeleteResponse, any, {}>>;
377
+ getAllFeedbackOfAChatChatsChatIdFeedbackGet: (chatId: number, params?: RequestParams) => Promise<AxiosResponse<GetFeedbackResponse, any, {}>>;
356
378
  };
357
379
  chatsChatId: {
358
380
  /**
@@ -364,5 +386,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
364
386
  * @request POST:/chats{chatId}/messages/{messageId}/give-negative-feedback-to-answer
365
387
  */
366
388
  giveNegativeFeedbackToAnswerChatsChatIdMessagesMessageIdGiveNegativeFeedbackToAnswerPost: (chatId: number, messageId: number, data: GiveNegativeFeedbackRequest, params?: RequestParams) => Promise<AxiosResponse<any, any, {}>>;
389
+ /**
390
+ * @description Used only for auto-testing
391
+ *
392
+ * @tags Chat operations
393
+ * @name HardDeleteChatChatsChatIdHardDeleteDelete
394
+ * @summary Hard Delete Chat
395
+ * @request DELETE:/chats{chatId}/hard-delete
396
+ */
397
+ hardDeleteChatChatsChatIdHardDeleteDelete: (chatId: number, params?: RequestParams) => Promise<AxiosResponse<HardDeleteResponse, any, {}>>;
367
398
  };
368
399
  }
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ var WhatWentWrong;
41
41
  WhatWentWrong["ErrorInResponse"] = "ErrorInResponse";
42
42
  WhatWentWrong["NoLinksToSources"] = "NoLinksToSources";
43
43
  WhatWentWrong["IncompleteAnswer"] = "IncompleteAnswer";
44
- WhatWentWrong["DoesntAnswerMyQuestion"] = "DoesntAnswerMyQuestion";
44
+ WhatWentWrong["DoesNotAnswerMyQuestion"] = "DoesNotAnswerMyQuestion";
45
45
  WhatWentWrong["NotAllSourcesHaveBeenUsed"] = "NotAllSourcesHaveBeenUsed";
46
46
  WhatWentWrong["SourcesAreNotRelevantToAnswer"] = "SourcesAreNotRelevantToAnswer";
47
47
  WhatWentWrong["Other"] = "Other";
@@ -135,7 +135,7 @@ class HttpClient {
135
135
  exports.HttpClient = HttpClient;
136
136
  /**
137
137
  * @title flamingo-api
138
- * @version 0.1.0
138
+ * @version 1.5.0
139
139
  * @baseUrl /api
140
140
  */
141
141
  class Api extends HttpClient {
@@ -265,11 +265,11 @@ class Api extends HttpClient {
265
265
  * @description Used only for auto-testing
266
266
  *
267
267
  * @tags Chat operations
268
- * @name HardDeleteChatChatsChatsChatIdHardDeleteDelete
269
- * @summary Hard Delete Chat
270
- * @request DELETE:/chats/chats/{chatId}/hard-delete
268
+ * @name GetAllFeedbackOfAChatChatsChatIdFeedbackGet
269
+ * @summary Get All Feedback Of A Chat
270
+ * @request GET:/chats/{chatId}/feedback
271
271
  */
272
- hardDeleteChatChatsChatsChatIdHardDeleteDelete: (chatId, params = {}) => this.request(Object.assign({ path: `/chats/chats/${chatId}/hard-delete`, method: "DELETE", format: "json" }, params)),
272
+ getAllFeedbackOfAChatChatsChatIdFeedbackGet: (chatId, params = {}) => this.request(Object.assign({ path: `/chats/${chatId}/feedback`, method: "GET", format: "json" }, params)),
273
273
  };
274
274
  this.chatsChatId = {
275
275
  /**
@@ -281,6 +281,15 @@ class Api extends HttpClient {
281
281
  * @request POST:/chats{chatId}/messages/{messageId}/give-negative-feedback-to-answer
282
282
  */
283
283
  giveNegativeFeedbackToAnswerChatsChatIdMessagesMessageIdGiveNegativeFeedbackToAnswerPost: (chatId, messageId, data, params = {}) => this.request(Object.assign({ path: `/chats${chatId}/messages/${messageId}/give-negative-feedback-to-answer`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
284
+ /**
285
+ * @description Used only for auto-testing
286
+ *
287
+ * @tags Chat operations
288
+ * @name HardDeleteChatChatsChatIdHardDeleteDelete
289
+ * @summary Hard Delete Chat
290
+ * @request DELETE:/chats{chatId}/hard-delete
291
+ */
292
+ hardDeleteChatChatsChatIdHardDeleteDelete: (chatId, params = {}) => this.request(Object.assign({ path: `/chats${chatId}/hard-delete`, method: "DELETE", format: "json" }, params)),
284
293
  };
285
294
  }
286
295
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tourmalinecore/flamingo-api-js-client",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Client for flamingo-api that provides TypeScript types and client to make network calls from JavaScript.",
5
5
  "homepage": "https://github.com/TourmalineCore/flamingo-api#readme",
6
6
  "bugs": {