@testcollab/sdk 3.7.0 → 3.9.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.
Files changed (72) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/dist/esm/models/QacConversationFeedback.d.ts +93 -0
  3. package/dist/esm/models/QacConversationFeedback.js +80 -0
  4. package/dist/esm/models/QacConversationFeedbackPayload.d.ts +62 -0
  5. package/dist/esm/models/QacConversationFeedbackPayload.js +63 -0
  6. package/dist/esm/models/QacConversationMessage.d.ts +135 -0
  7. package/dist/esm/models/QacConversationMessage.js +105 -0
  8. package/dist/esm/models/QacConversationMessagePayload.d.ts +88 -0
  9. package/dist/esm/models/QacConversationMessagePayload.js +71 -0
  10. package/dist/esm/models/QacConversationThread.d.ts +130 -0
  11. package/dist/esm/models/QacConversationThread.js +90 -0
  12. package/dist/esm/models/QacConversationThreadPayload.d.ts +81 -0
  13. package/dist/esm/models/QacConversationThreadPayload.js +65 -0
  14. package/dist/esm/models/QacConversationThreadWithMessages.d.ts +40 -0
  15. package/dist/esm/models/QacConversationThreadWithMessages.js +45 -0
  16. package/dist/esm/models/QacConversationTokenUsage.d.ts +44 -0
  17. package/dist/esm/models/QacConversationTokenUsage.js +45 -0
  18. package/dist/esm/models/SuiteTree.d.ts +0 -6
  19. package/dist/esm/models/SuiteTree.js +0 -4
  20. package/dist/esm/models/TrainingArtifactPayload.d.ts +4 -4
  21. package/dist/esm/models/TrainingArtifactPayload.js +4 -4
  22. package/dist/esm/models/TrainingSession.d.ts +1 -0
  23. package/dist/esm/models/TrainingSession.js +2 -1
  24. package/dist/esm/models/index.d.ts +8 -0
  25. package/dist/esm/models/index.js +8 -0
  26. package/dist/models/QacConversationFeedback.d.ts +93 -0
  27. package/dist/models/QacConversationFeedback.js +88 -0
  28. package/dist/models/QacConversationFeedbackPayload.d.ts +62 -0
  29. package/dist/models/QacConversationFeedbackPayload.js +71 -0
  30. package/dist/models/QacConversationMessage.d.ts +135 -0
  31. package/dist/models/QacConversationMessage.js +113 -0
  32. package/dist/models/QacConversationMessagePayload.d.ts +88 -0
  33. package/dist/models/QacConversationMessagePayload.js +79 -0
  34. package/dist/models/QacConversationThread.d.ts +130 -0
  35. package/dist/models/QacConversationThread.js +98 -0
  36. package/dist/models/QacConversationThreadPayload.d.ts +81 -0
  37. package/dist/models/QacConversationThreadPayload.js +73 -0
  38. package/dist/models/QacConversationThreadWithMessages.d.ts +40 -0
  39. package/dist/models/QacConversationThreadWithMessages.js +52 -0
  40. package/dist/models/QacConversationTokenUsage.d.ts +44 -0
  41. package/dist/models/QacConversationTokenUsage.js +52 -0
  42. package/dist/models/SuiteTree.d.ts +0 -6
  43. package/dist/models/SuiteTree.js +0 -4
  44. package/dist/models/TrainingArtifactPayload.d.ts +4 -4
  45. package/dist/models/TrainingArtifactPayload.js +4 -4
  46. package/dist/models/TrainingSession.d.ts +1 -0
  47. package/dist/models/TrainingSession.js +2 -1
  48. package/dist/models/index.d.ts +8 -0
  49. package/dist/models/index.js +8 -0
  50. package/docs/QacConversationFeedback.md +48 -0
  51. package/docs/QacConversationFeedbackPayload.md +38 -0
  52. package/docs/QacConversationMessage.md +58 -0
  53. package/docs/QacConversationMessagePayload.md +46 -0
  54. package/docs/QacConversationThread.md +62 -0
  55. package/docs/QacConversationThreadPayload.md +46 -0
  56. package/docs/QacConversationThreadWithMessages.md +36 -0
  57. package/docs/QacConversationTokenUsage.md +38 -0
  58. package/docs/SuiteTree.md +0 -2
  59. package/docs/TrainingArtifactPayload.md +2 -2
  60. package/package.json +1 -1
  61. package/src/models/QacConversationFeedback.ts +155 -0
  62. package/src/models/QacConversationFeedbackPayload.ts +104 -0
  63. package/src/models/QacConversationMessage.ts +222 -0
  64. package/src/models/QacConversationMessagePayload.ts +136 -0
  65. package/src/models/QacConversationThread.ts +203 -0
  66. package/src/models/QacConversationThreadPayload.ts +127 -0
  67. package/src/models/QacConversationThreadWithMessages.ts +88 -0
  68. package/src/models/QacConversationTokenUsage.ts +81 -0
  69. package/src/models/SuiteTree.ts +0 -9
  70. package/src/models/TrainingArtifactPayload.ts +8 -8
  71. package/src/models/TrainingSession.ts +2 -1
  72. package/src/models/index.ts +8 -0
@@ -19,8 +19,6 @@ export function instanceOfSuiteTree(value) {
19
19
  return false;
20
20
  if (!('title' in value) || value['title'] === undefined)
21
21
  return false;
22
- if (!('description' in value) || value['description'] === undefined)
23
- return false;
24
22
  if (!('testcasecount' in value) || value['testcasecount'] === undefined)
25
23
  return false;
26
24
  if (!('children' in value) || value['children'] === undefined)
@@ -37,7 +35,6 @@ export function SuiteTreeFromJSONTyped(json, ignoreDiscriminator) {
37
35
  return {
38
36
  'id': json['id'],
39
37
  'title': json['title'],
40
- 'description': json['description'],
41
38
  'suitecount': json['suitecount'] == null ? undefined : json['suitecount'],
42
39
  'createdBy': json['created_by'] == null ? undefined : json['created_by'],
43
40
  'testcasecount': json['testcasecount'],
@@ -59,7 +56,6 @@ export function SuiteTreeToJSONTyped(value, ignoreDiscriminator = false) {
59
56
  return {
60
57
  'id': value['id'],
61
58
  'title': value['title'],
62
- 'description': value['description'],
63
59
  'suitecount': value['suitecount'],
64
60
  'created_by': value['createdBy'],
65
61
  'testcasecount': value['testcasecount'],
@@ -71,10 +71,10 @@ export interface TrainingArtifactPayload {
71
71
  imgThumb?: string;
72
72
  /**
73
73
  * Timestamp when the action was executed
74
- * @type {Date}
74
+ * @type {string}
75
75
  * @memberof TrainingArtifactPayload
76
76
  */
77
- timestamp?: Date;
77
+ timestamp?: string;
78
78
  /**
79
79
  * Browser URL captured for the artifact
80
80
  * @type {string}
@@ -91,10 +91,10 @@ export interface TrainingArtifactPayload {
91
91
  };
92
92
  /**
93
93
  * Optional override for the artifact creation timestamp
94
- * @type {Date}
94
+ * @type {string}
95
95
  * @memberof TrainingArtifactPayload
96
96
  */
97
- created?: Date;
97
+ created?: string;
98
98
  }
99
99
  /**
100
100
  * @export
@@ -56,10 +56,10 @@ export function TrainingArtifactPayloadFromJSONTyped(json, ignoreDiscriminator)
56
56
  'subStepTxt': json['sub_step_txt'] == null ? undefined : json['sub_step_txt'],
57
57
  'imgFull': json['img_full'] == null ? undefined : json['img_full'],
58
58
  'imgThumb': json['img_thumb'] == null ? undefined : json['img_thumb'],
59
- 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
59
+ 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
60
60
  'browserLocation': json['browser_location'] == null ? undefined : json['browser_location'],
61
61
  'otherInfoJson': json['other_info_json'] == null ? undefined : json['other_info_json'],
62
- 'created': json['created'] == null ? undefined : (new Date(json['created'])),
62
+ 'created': json['created'] == null ? undefined : json['created'],
63
63
  };
64
64
  }
65
65
  export function TrainingArtifactPayloadToJSON(json) {
@@ -79,9 +79,9 @@ export function TrainingArtifactPayloadToJSONTyped(value, ignoreDiscriminator =
79
79
  'sub_step_txt': value['subStepTxt'],
80
80
  'img_full': value['imgFull'],
81
81
  'img_thumb': value['imgThumb'],
82
- 'timestamp': value['timestamp'] == null ? value['timestamp'] : value['timestamp'].toISOString(),
82
+ 'timestamp': value['timestamp'],
83
83
  'browser_location': value['browserLocation'],
84
84
  'other_info_json': value['otherInfoJson'],
85
- 'created': value['created'] == null ? value['created'] : value['created'].toISOString(),
85
+ 'created': value['created'],
86
86
  };
87
87
  }
@@ -123,6 +123,7 @@ export declare const TrainingSessionStatusEnum: {
123
123
  readonly Inprogress: "inprogress";
124
124
  readonly Ready: "ready";
125
125
  readonly Failed: "failed";
126
+ readonly Stopped: "stopped";
126
127
  };
127
128
  export type TrainingSessionStatusEnum = typeof TrainingSessionStatusEnum[keyof typeof TrainingSessionStatusEnum];
128
129
  /**
@@ -26,7 +26,8 @@ export const TrainingSessionStatusEnum = {
26
26
  Queued: 'queued',
27
27
  Inprogress: 'inprogress',
28
28
  Ready: 'ready',
29
- Failed: 'failed'
29
+ Failed: 'failed',
30
+ Stopped: 'stopped'
30
31
  };
31
32
  /**
32
33
  * Check if a given object implements the TrainingSession interface.
@@ -157,6 +157,14 @@ export * from './Projectsetting';
157
157
  export * from './ProjectsettingMini';
158
158
  export * from './ProjectsettingPayload';
159
159
  export * from './QACCustomHeader';
160
+ export * from './QacConversationFeedback';
161
+ export * from './QacConversationFeedbackPayload';
162
+ export * from './QacConversationMessage';
163
+ export * from './QacConversationMessagePayload';
164
+ export * from './QacConversationThread';
165
+ export * from './QacConversationThreadPayload';
166
+ export * from './QacConversationThreadWithMessages';
167
+ export * from './QacConversationTokenUsage';
160
168
  export * from './Queue';
161
169
  export * from './QueuePayload';
162
170
  export * from './QueueStatus';
@@ -159,6 +159,14 @@ export * from './Projectsetting';
159
159
  export * from './ProjectsettingMini';
160
160
  export * from './ProjectsettingPayload';
161
161
  export * from './QACCustomHeader';
162
+ export * from './QacConversationFeedback';
163
+ export * from './QacConversationFeedbackPayload';
164
+ export * from './QacConversationMessage';
165
+ export * from './QacConversationMessagePayload';
166
+ export * from './QacConversationThread';
167
+ export * from './QacConversationThreadPayload';
168
+ export * from './QacConversationThreadWithMessages';
169
+ export * from './QacConversationTokenUsage';
162
170
  export * from './Queue';
163
171
  export * from './QueuePayload';
164
172
  export * from './QueueStatus';
@@ -0,0 +1,93 @@
1
+ /**
2
+ * TC API
3
+ * TestCollab is a test management tool that helps development teams carry out testing effectively and avoid failures. # Introduction This is an API documentation for TestCollab 2. # Authentication TestCollab supports two forms of authentication: - An <b>API token</b> is required to make API calls. The token can be generated from user\'s profile; to obtain it login to your TestCollab account and go to [\'My Profile Settings\'](https://testcollab.io/my_profile) and switch to API Token tab. Click on \"Generate new API token\", Once the token is generated it can be sent as a query parameter for the API calls made - https://api.testcollab.io/projects?token=<generated-API-token> - <b>Bearer authentication</b> (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. You can generate bearer auth token using [Login](#operation/login) API. Send this token as the Authorization header while making requests to protected resources: `Authorization: Bearer <token>` For making API calls, we recommend using the <b>API token</b> generated from user profile page as it won\'t affect the on-going user session and will be available until it is revoked by the user who generated it. # Error Handling Error responses - `Not Found` - Error is sent when requested resource is not available. - `Unauthorized - invalid token` - Error is sent when API token sent with the request is invalid or revoked. Error contains status code 401 - `Forbidden` - Error is sent when logged in user is not part of the company, project or his role does not allow to complete given action. Response consist of 403 status code and more information is given in error message.
4
+ *
5
+ * The version of the OpenAPI document: 2.3.1
6
+ * Contact: support@testcollab.com
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
+ import type { UserMinified } from './UserMinified';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface QacConversationFeedback
17
+ */
18
+ export interface QacConversationFeedback {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof QacConversationFeedback
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof QacConversationFeedback
29
+ */
30
+ message: number;
31
+ /**
32
+ *
33
+ * @type {UserMinified}
34
+ * @memberof QacConversationFeedback
35
+ */
36
+ givenBy?: UserMinified;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof QacConversationFeedback
41
+ */
42
+ rating: QacConversationFeedbackRatingEnum;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof QacConversationFeedback
47
+ */
48
+ reason?: QacConversationFeedbackReasonEnum;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof QacConversationFeedback
53
+ */
54
+ comment?: string;
55
+ /**
56
+ * Time when the activity was performed
57
+ * @type {string}
58
+ * @memberof QacConversationFeedback
59
+ */
60
+ createdAt: string;
61
+ /**
62
+ * Time when the activity was performed
63
+ * @type {string}
64
+ * @memberof QacConversationFeedback
65
+ */
66
+ updatedAt?: string;
67
+ }
68
+ /**
69
+ * @export
70
+ */
71
+ export declare const QacConversationFeedbackRatingEnum: {
72
+ readonly Up: "up";
73
+ readonly Down: "down";
74
+ };
75
+ export type QacConversationFeedbackRatingEnum = typeof QacConversationFeedbackRatingEnum[keyof typeof QacConversationFeedbackRatingEnum];
76
+ /**
77
+ * @export
78
+ */
79
+ export declare const QacConversationFeedbackReasonEnum: {
80
+ readonly Irrelevant: "irrelevant";
81
+ readonly Incorrect: "incorrect";
82
+ readonly Offensive: "offensive";
83
+ readonly Other: "other";
84
+ };
85
+ export type QacConversationFeedbackReasonEnum = typeof QacConversationFeedbackReasonEnum[keyof typeof QacConversationFeedbackReasonEnum];
86
+ /**
87
+ * Check if a given object implements the QacConversationFeedback interface.
88
+ */
89
+ export declare function instanceOfQacConversationFeedback(value: object): value is QacConversationFeedback;
90
+ export declare function QacConversationFeedbackFromJSON(json: any): QacConversationFeedback;
91
+ export declare function QacConversationFeedbackFromJSONTyped(json: any, ignoreDiscriminator: boolean): QacConversationFeedback;
92
+ export declare function QacConversationFeedbackToJSON(json: any): QacConversationFeedback;
93
+ export declare function QacConversationFeedbackToJSONTyped(value?: QacConversationFeedback | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * TC API
6
+ * TestCollab is a test management tool that helps development teams carry out testing effectively and avoid failures. # Introduction This is an API documentation for TestCollab 2. # Authentication TestCollab supports two forms of authentication: - An <b>API token</b> is required to make API calls. The token can be generated from user\'s profile; to obtain it login to your TestCollab account and go to [\'My Profile Settings\'](https://testcollab.io/my_profile) and switch to API Token tab. Click on \"Generate new API token\", Once the token is generated it can be sent as a query parameter for the API calls made - https://api.testcollab.io/projects?token=<generated-API-token> - <b>Bearer authentication</b> (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. You can generate bearer auth token using [Login](#operation/login) API. Send this token as the Authorization header while making requests to protected resources: `Authorization: Bearer <token>` For making API calls, we recommend using the <b>API token</b> generated from user profile page as it won\'t affect the on-going user session and will be available until it is revoked by the user who generated it. # Error Handling Error responses - `Not Found` - Error is sent when requested resource is not available. - `Unauthorized - invalid token` - Error is sent when API token sent with the request is invalid or revoked. Error contains status code 401 - `Forbidden` - Error is sent when logged in user is not part of the company, project or his role does not allow to complete given action. Response consist of 403 status code and more information is given in error message.
7
+ *
8
+ * The version of the OpenAPI document: 2.3.1
9
+ * Contact: support@testcollab.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.QacConversationFeedbackReasonEnum = exports.QacConversationFeedbackRatingEnum = void 0;
17
+ exports.instanceOfQacConversationFeedback = instanceOfQacConversationFeedback;
18
+ exports.QacConversationFeedbackFromJSON = QacConversationFeedbackFromJSON;
19
+ exports.QacConversationFeedbackFromJSONTyped = QacConversationFeedbackFromJSONTyped;
20
+ exports.QacConversationFeedbackToJSON = QacConversationFeedbackToJSON;
21
+ exports.QacConversationFeedbackToJSONTyped = QacConversationFeedbackToJSONTyped;
22
+ const UserMinified_1 = require("./UserMinified");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.QacConversationFeedbackRatingEnum = {
27
+ Up: 'up',
28
+ Down: 'down'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.QacConversationFeedbackReasonEnum = {
34
+ Irrelevant: 'irrelevant',
35
+ Incorrect: 'incorrect',
36
+ Offensive: 'offensive',
37
+ Other: 'other'
38
+ };
39
+ /**
40
+ * Check if a given object implements the QacConversationFeedback interface.
41
+ */
42
+ function instanceOfQacConversationFeedback(value) {
43
+ if (!('id' in value) || value['id'] === undefined)
44
+ return false;
45
+ if (!('message' in value) || value['message'] === undefined)
46
+ return false;
47
+ if (!('rating' in value) || value['rating'] === undefined)
48
+ return false;
49
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ function QacConversationFeedbackFromJSON(json) {
54
+ return QacConversationFeedbackFromJSONTyped(json, false);
55
+ }
56
+ function QacConversationFeedbackFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'id': json['id'],
62
+ 'message': json['message'],
63
+ 'givenBy': json['given_by'] == null ? undefined : (0, UserMinified_1.UserMinifiedFromJSON)(json['given_by']),
64
+ 'rating': json['rating'],
65
+ 'reason': json['reason'] == null ? undefined : json['reason'],
66
+ 'comment': json['comment'] == null ? undefined : json['comment'],
67
+ 'createdAt': json['created_at'],
68
+ 'updatedAt': json['updated_at'] == null ? undefined : json['updated_at'],
69
+ };
70
+ }
71
+ function QacConversationFeedbackToJSON(json) {
72
+ return QacConversationFeedbackToJSONTyped(json, false);
73
+ }
74
+ function QacConversationFeedbackToJSONTyped(value, ignoreDiscriminator = false) {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+ return {
79
+ 'id': value['id'],
80
+ 'message': value['message'],
81
+ 'given_by': (0, UserMinified_1.UserMinifiedToJSON)(value['givenBy']),
82
+ 'rating': value['rating'],
83
+ 'reason': value['reason'],
84
+ 'comment': value['comment'],
85
+ 'created_at': value['createdAt'],
86
+ 'updated_at': value['updatedAt'],
87
+ };
88
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * TC API
3
+ * TestCollab is a test management tool that helps development teams carry out testing effectively and avoid failures. # Introduction This is an API documentation for TestCollab 2. # Authentication TestCollab supports two forms of authentication: - An <b>API token</b> is required to make API calls. The token can be generated from user\'s profile; to obtain it login to your TestCollab account and go to [\'My Profile Settings\'](https://testcollab.io/my_profile) and switch to API Token tab. Click on \"Generate new API token\", Once the token is generated it can be sent as a query parameter for the API calls made - https://api.testcollab.io/projects?token=<generated-API-token> - <b>Bearer authentication</b> (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. You can generate bearer auth token using [Login](#operation/login) API. Send this token as the Authorization header while making requests to protected resources: `Authorization: Bearer <token>` For making API calls, we recommend using the <b>API token</b> generated from user profile page as it won\'t affect the on-going user session and will be available until it is revoked by the user who generated it. # Error Handling Error responses - `Not Found` - Error is sent when requested resource is not available. - `Unauthorized - invalid token` - Error is sent when API token sent with the request is invalid or revoked. Error contains status code 401 - `Forbidden` - Error is sent when logged in user is not part of the company, project or his role does not allow to complete given action. Response consist of 403 status code and more information is given in error message.
4
+ *
5
+ * The version of the OpenAPI document: 2.3.1
6
+ * Contact: support@testcollab.com
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
15
+ * @interface QacConversationFeedbackPayload
16
+ */
17
+ export interface QacConversationFeedbackPayload {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof QacConversationFeedbackPayload
22
+ */
23
+ rating: QacConversationFeedbackPayloadRatingEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof QacConversationFeedbackPayload
28
+ */
29
+ reason?: QacConversationFeedbackPayloadReasonEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof QacConversationFeedbackPayload
34
+ */
35
+ comment?: string;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const QacConversationFeedbackPayloadRatingEnum: {
41
+ readonly Up: "up";
42
+ readonly Down: "down";
43
+ };
44
+ export type QacConversationFeedbackPayloadRatingEnum = typeof QacConversationFeedbackPayloadRatingEnum[keyof typeof QacConversationFeedbackPayloadRatingEnum];
45
+ /**
46
+ * @export
47
+ */
48
+ export declare const QacConversationFeedbackPayloadReasonEnum: {
49
+ readonly Irrelevant: "irrelevant";
50
+ readonly Incorrect: "incorrect";
51
+ readonly Offensive: "offensive";
52
+ readonly Other: "other";
53
+ };
54
+ export type QacConversationFeedbackPayloadReasonEnum = typeof QacConversationFeedbackPayloadReasonEnum[keyof typeof QacConversationFeedbackPayloadReasonEnum];
55
+ /**
56
+ * Check if a given object implements the QacConversationFeedbackPayload interface.
57
+ */
58
+ export declare function instanceOfQacConversationFeedbackPayload(value: object): value is QacConversationFeedbackPayload;
59
+ export declare function QacConversationFeedbackPayloadFromJSON(json: any): QacConversationFeedbackPayload;
60
+ export declare function QacConversationFeedbackPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): QacConversationFeedbackPayload;
61
+ export declare function QacConversationFeedbackPayloadToJSON(json: any): QacConversationFeedbackPayload;
62
+ export declare function QacConversationFeedbackPayloadToJSONTyped(value?: QacConversationFeedbackPayload | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * TC API
6
+ * TestCollab is a test management tool that helps development teams carry out testing effectively and avoid failures. # Introduction This is an API documentation for TestCollab 2. # Authentication TestCollab supports two forms of authentication: - An <b>API token</b> is required to make API calls. The token can be generated from user\'s profile; to obtain it login to your TestCollab account and go to [\'My Profile Settings\'](https://testcollab.io/my_profile) and switch to API Token tab. Click on \"Generate new API token\", Once the token is generated it can be sent as a query parameter for the API calls made - https://api.testcollab.io/projects?token=<generated-API-token> - <b>Bearer authentication</b> (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. You can generate bearer auth token using [Login](#operation/login) API. Send this token as the Authorization header while making requests to protected resources: `Authorization: Bearer <token>` For making API calls, we recommend using the <b>API token</b> generated from user profile page as it won\'t affect the on-going user session and will be available until it is revoked by the user who generated it. # Error Handling Error responses - `Not Found` - Error is sent when requested resource is not available. - `Unauthorized - invalid token` - Error is sent when API token sent with the request is invalid or revoked. Error contains status code 401 - `Forbidden` - Error is sent when logged in user is not part of the company, project or his role does not allow to complete given action. Response consist of 403 status code and more information is given in error message.
7
+ *
8
+ * The version of the OpenAPI document: 2.3.1
9
+ * Contact: support@testcollab.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.QacConversationFeedbackPayloadReasonEnum = exports.QacConversationFeedbackPayloadRatingEnum = void 0;
17
+ exports.instanceOfQacConversationFeedbackPayload = instanceOfQacConversationFeedbackPayload;
18
+ exports.QacConversationFeedbackPayloadFromJSON = QacConversationFeedbackPayloadFromJSON;
19
+ exports.QacConversationFeedbackPayloadFromJSONTyped = QacConversationFeedbackPayloadFromJSONTyped;
20
+ exports.QacConversationFeedbackPayloadToJSON = QacConversationFeedbackPayloadToJSON;
21
+ exports.QacConversationFeedbackPayloadToJSONTyped = QacConversationFeedbackPayloadToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.QacConversationFeedbackPayloadRatingEnum = {
26
+ Up: 'up',
27
+ Down: 'down'
28
+ };
29
+ /**
30
+ * @export
31
+ */
32
+ exports.QacConversationFeedbackPayloadReasonEnum = {
33
+ Irrelevant: 'irrelevant',
34
+ Incorrect: 'incorrect',
35
+ Offensive: 'offensive',
36
+ Other: 'other'
37
+ };
38
+ /**
39
+ * Check if a given object implements the QacConversationFeedbackPayload interface.
40
+ */
41
+ function instanceOfQacConversationFeedbackPayload(value) {
42
+ if (!('rating' in value) || value['rating'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function QacConversationFeedbackPayloadFromJSON(json) {
47
+ return QacConversationFeedbackPayloadFromJSONTyped(json, false);
48
+ }
49
+ function QacConversationFeedbackPayloadFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'rating': json['rating'],
55
+ 'reason': json['reason'] == null ? undefined : json['reason'],
56
+ 'comment': json['comment'] == null ? undefined : json['comment'],
57
+ };
58
+ }
59
+ function QacConversationFeedbackPayloadToJSON(json) {
60
+ return QacConversationFeedbackPayloadToJSONTyped(json, false);
61
+ }
62
+ function QacConversationFeedbackPayloadToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'rating': value['rating'],
68
+ 'reason': value['reason'],
69
+ 'comment': value['comment'],
70
+ };
71
+ }
@@ -0,0 +1,135 @@
1
+ /**
2
+ * TC API
3
+ * TestCollab is a test management tool that helps development teams carry out testing effectively and avoid failures. # Introduction This is an API documentation for TestCollab 2. # Authentication TestCollab supports two forms of authentication: - An <b>API token</b> is required to make API calls. The token can be generated from user\'s profile; to obtain it login to your TestCollab account and go to [\'My Profile Settings\'](https://testcollab.io/my_profile) and switch to API Token tab. Click on \"Generate new API token\", Once the token is generated it can be sent as a query parameter for the API calls made - https://api.testcollab.io/projects?token=<generated-API-token> - <b>Bearer authentication</b> (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. You can generate bearer auth token using [Login](#operation/login) API. Send this token as the Authorization header while making requests to protected resources: `Authorization: Bearer <token>` For making API calls, we recommend using the <b>API token</b> generated from user profile page as it won\'t affect the on-going user session and will be available until it is revoked by the user who generated it. # Error Handling Error responses - `Not Found` - Error is sent when requested resource is not available. - `Unauthorized - invalid token` - Error is sent when API token sent with the request is invalid or revoked. Error contains status code 401 - `Forbidden` - Error is sent when logged in user is not part of the company, project or his role does not allow to complete given action. Response consist of 403 status code and more information is given in error message.
4
+ *
5
+ * The version of the OpenAPI document: 2.3.1
6
+ * Contact: support@testcollab.com
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
+ import type { UserMinified } from './UserMinified';
13
+ import type { QacConversationTokenUsage } from './QacConversationTokenUsage';
14
+ import type { Upload } from './Upload';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface QacConversationMessage
19
+ */
20
+ export interface QacConversationMessage {
21
+ /**
22
+ *
23
+ * @type {number}
24
+ * @memberof QacConversationMessage
25
+ */
26
+ id: number;
27
+ /**
28
+ *
29
+ * @type {number}
30
+ * @memberof QacConversationMessage
31
+ */
32
+ thread: number;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof QacConversationMessage
37
+ */
38
+ authorType: QacConversationMessageAuthorTypeEnum;
39
+ /**
40
+ *
41
+ * @type {UserMinified}
42
+ * @memberof QacConversationMessage
43
+ */
44
+ author?: UserMinified;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof QacConversationMessage
49
+ */
50
+ role?: QacConversationMessageRoleEnum;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof QacConversationMessage
55
+ */
56
+ content: string;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof QacConversationMessage
61
+ */
62
+ contentHtml?: string;
63
+ /**
64
+ *
65
+ * @type {Array<Upload>}
66
+ * @memberof QacConversationMessage
67
+ */
68
+ attachments?: Array<Upload>;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof QacConversationMessage
73
+ */
74
+ status: QacConversationMessageStatusEnum;
75
+ /**
76
+ *
77
+ * @type {string}
78
+ * @memberof QacConversationMessage
79
+ */
80
+ errorReason?: string;
81
+ /**
82
+ *
83
+ * @type {QacConversationTokenUsage}
84
+ * @memberof QacConversationMessage
85
+ */
86
+ tokenUsage?: QacConversationTokenUsage;
87
+ /**
88
+ * Time when the activity was performed
89
+ * @type {string}
90
+ * @memberof QacConversationMessage
91
+ */
92
+ createdAt: string;
93
+ /**
94
+ * Time when the activity was performed
95
+ * @type {string}
96
+ * @memberof QacConversationMessage
97
+ */
98
+ updatedAt?: string;
99
+ }
100
+ /**
101
+ * @export
102
+ */
103
+ export declare const QacConversationMessageAuthorTypeEnum: {
104
+ readonly User: "user";
105
+ readonly Copilot: "copilot";
106
+ readonly System: "system";
107
+ };
108
+ export type QacConversationMessageAuthorTypeEnum = typeof QacConversationMessageAuthorTypeEnum[keyof typeof QacConversationMessageAuthorTypeEnum];
109
+ /**
110
+ * @export
111
+ */
112
+ export declare const QacConversationMessageRoleEnum: {
113
+ readonly User: "user";
114
+ readonly Assistant: "assistant";
115
+ readonly System: "system";
116
+ };
117
+ export type QacConversationMessageRoleEnum = typeof QacConversationMessageRoleEnum[keyof typeof QacConversationMessageRoleEnum];
118
+ /**
119
+ * @export
120
+ */
121
+ export declare const QacConversationMessageStatusEnum: {
122
+ readonly Queued: "queued";
123
+ readonly InProgress: "in_progress";
124
+ readonly Completed: "completed";
125
+ readonly Error: "error";
126
+ };
127
+ export type QacConversationMessageStatusEnum = typeof QacConversationMessageStatusEnum[keyof typeof QacConversationMessageStatusEnum];
128
+ /**
129
+ * Check if a given object implements the QacConversationMessage interface.
130
+ */
131
+ export declare function instanceOfQacConversationMessage(value: object): value is QacConversationMessage;
132
+ export declare function QacConversationMessageFromJSON(json: any): QacConversationMessage;
133
+ export declare function QacConversationMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): QacConversationMessage;
134
+ export declare function QacConversationMessageToJSON(json: any): QacConversationMessage;
135
+ export declare function QacConversationMessageToJSONTyped(value?: QacConversationMessage | null, ignoreDiscriminator?: boolean): any;