@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
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * TC API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 2.3.1
8
+ * Contact: support@testcollab.com
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 { QacConversationThread } from './QacConversationThread';
17
+ import {
18
+ QacConversationThreadFromJSON,
19
+ QacConversationThreadFromJSONTyped,
20
+ QacConversationThreadToJSON,
21
+ QacConversationThreadToJSONTyped,
22
+ } from './QacConversationThread';
23
+ import type { QacConversationMessage } from './QacConversationMessage';
24
+ import {
25
+ QacConversationMessageFromJSON,
26
+ QacConversationMessageFromJSONTyped,
27
+ QacConversationMessageToJSON,
28
+ QacConversationMessageToJSONTyped,
29
+ } from './QacConversationMessage';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface QacConversationThreadWithMessages
35
+ */
36
+ export interface QacConversationThreadWithMessages {
37
+ /**
38
+ *
39
+ * @type {QacConversationThread}
40
+ * @memberof QacConversationThreadWithMessages
41
+ */
42
+ thread?: QacConversationThread;
43
+ /**
44
+ *
45
+ * @type {Array<QacConversationMessage>}
46
+ * @memberof QacConversationThreadWithMessages
47
+ */
48
+ messages?: Array<QacConversationMessage>;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the QacConversationThreadWithMessages interface.
53
+ */
54
+ export function instanceOfQacConversationThreadWithMessages(value: object): value is QacConversationThreadWithMessages {
55
+ return true;
56
+ }
57
+
58
+ export function QacConversationThreadWithMessagesFromJSON(json: any): QacConversationThreadWithMessages {
59
+ return QacConversationThreadWithMessagesFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function QacConversationThreadWithMessagesFromJSONTyped(json: any, ignoreDiscriminator: boolean): QacConversationThreadWithMessages {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'thread': json['thread'] == null ? undefined : QacConversationThreadFromJSON(json['thread']),
69
+ 'messages': json['messages'] == null ? undefined : ((json['messages'] as Array<any>).map(QacConversationMessageFromJSON)),
70
+ };
71
+ }
72
+
73
+ export function QacConversationThreadWithMessagesToJSON(json: any): QacConversationThreadWithMessages {
74
+ return QacConversationThreadWithMessagesToJSONTyped(json, false);
75
+ }
76
+
77
+ export function QacConversationThreadWithMessagesToJSONTyped(value?: QacConversationThreadWithMessages | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'thread': QacConversationThreadToJSON(value['thread']),
85
+ 'messages': value['messages'] == null ? undefined : ((value['messages'] as Array<any>).map(QacConversationMessageToJSON)),
86
+ };
87
+ }
88
+
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * TC API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 2.3.1
8
+ * Contact: support@testcollab.com
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 QacConversationTokenUsage
20
+ */
21
+ export interface QacConversationTokenUsage {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof QacConversationTokenUsage
26
+ */
27
+ promptTokens?: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof QacConversationTokenUsage
32
+ */
33
+ completionTokens?: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof QacConversationTokenUsage
38
+ */
39
+ totalTokens?: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the QacConversationTokenUsage interface.
44
+ */
45
+ export function instanceOfQacConversationTokenUsage(value: object): value is QacConversationTokenUsage {
46
+ return true;
47
+ }
48
+
49
+ export function QacConversationTokenUsageFromJSON(json: any): QacConversationTokenUsage {
50
+ return QacConversationTokenUsageFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function QacConversationTokenUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): QacConversationTokenUsage {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'promptTokens': json['prompt_tokens'] == null ? undefined : json['prompt_tokens'],
60
+ 'completionTokens': json['completion_tokens'] == null ? undefined : json['completion_tokens'],
61
+ 'totalTokens': json['total_tokens'] == null ? undefined : json['total_tokens'],
62
+ };
63
+ }
64
+
65
+ export function QacConversationTokenUsageToJSON(json: any): QacConversationTokenUsage {
66
+ return QacConversationTokenUsageToJSONTyped(json, false);
67
+ }
68
+
69
+ export function QacConversationTokenUsageToJSONTyped(value?: QacConversationTokenUsage | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'prompt_tokens': value['promptTokens'],
77
+ 'completion_tokens': value['completionTokens'],
78
+ 'total_tokens': value['totalTokens'],
79
+ };
80
+ }
81
+
@@ -31,12 +31,6 @@ export interface SuiteTree {
31
31
  * @memberof SuiteTree
32
32
  */
33
33
  title: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof SuiteTree
38
- */
39
- description: string;
40
34
  /**
41
35
  * No. of child suites in this suite
42
36
  * @type {number}
@@ -99,7 +93,6 @@ export interface SuiteTree {
99
93
  export function instanceOfSuiteTree(value: object): value is SuiteTree {
100
94
  if (!('id' in value) || value['id'] === undefined) return false;
101
95
  if (!('title' in value) || value['title'] === undefined) return false;
102
- if (!('description' in value) || value['description'] === undefined) return false;
103
96
  if (!('testcasecount' in value) || value['testcasecount'] === undefined) return false;
104
97
  if (!('children' in value) || value['children'] === undefined) return false;
105
98
  return true;
@@ -117,7 +110,6 @@ export function SuiteTreeFromJSONTyped(json: any, ignoreDiscriminator: boolean):
117
110
 
118
111
  'id': json['id'],
119
112
  'title': json['title'],
120
- 'description': json['description'],
121
113
  'suitecount': json['suitecount'] == null ? undefined : json['suitecount'],
122
114
  'createdBy': json['created_by'] == null ? undefined : json['created_by'],
123
115
  'testcasecount': json['testcasecount'],
@@ -143,7 +135,6 @@ export function SuiteTreeToJSONTyped(value?: SuiteTree | null, ignoreDiscriminat
143
135
 
144
136
  'id': value['id'],
145
137
  'title': value['title'],
146
- 'description': value['description'],
147
138
  'suitecount': value['suitecount'],
148
139
  'created_by': value['createdBy'],
149
140
  'testcasecount': value['testcasecount'],
@@ -75,10 +75,10 @@ export interface TrainingArtifactPayload {
75
75
  imgThumb?: string;
76
76
  /**
77
77
  * Timestamp when the action was executed
78
- * @type {Date}
78
+ * @type {string}
79
79
  * @memberof TrainingArtifactPayload
80
80
  */
81
- timestamp?: Date;
81
+ timestamp?: string;
82
82
  /**
83
83
  * Browser URL captured for the artifact
84
84
  * @type {string}
@@ -93,10 +93,10 @@ export interface TrainingArtifactPayload {
93
93
  otherInfoJson?: { [key: string]: any; };
94
94
  /**
95
95
  * Optional override for the artifact creation timestamp
96
- * @type {Date}
96
+ * @type {string}
97
97
  * @memberof TrainingArtifactPayload
98
98
  */
99
- created?: Date;
99
+ created?: string;
100
100
  }
101
101
 
102
102
 
@@ -149,10 +149,10 @@ export function TrainingArtifactPayloadFromJSONTyped(json: any, ignoreDiscrimina
149
149
  'subStepTxt': json['sub_step_txt'] == null ? undefined : json['sub_step_txt'],
150
150
  'imgFull': json['img_full'] == null ? undefined : json['img_full'],
151
151
  'imgThumb': json['img_thumb'] == null ? undefined : json['img_thumb'],
152
- 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
152
+ 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
153
153
  'browserLocation': json['browser_location'] == null ? undefined : json['browser_location'],
154
154
  'otherInfoJson': json['other_info_json'] == null ? undefined : json['other_info_json'],
155
- 'created': json['created'] == null ? undefined : (new Date(json['created'])),
155
+ 'created': json['created'] == null ? undefined : json['created'],
156
156
  };
157
157
  }
158
158
 
@@ -176,10 +176,10 @@ export function TrainingArtifactPayloadToJSONTyped(value?: TrainingArtifactPaylo
176
176
  'sub_step_txt': value['subStepTxt'],
177
177
  'img_full': value['imgFull'],
178
178
  'img_thumb': value['imgThumb'],
179
- 'timestamp': value['timestamp'] == null ? value['timestamp'] : value['timestamp'].toISOString(),
179
+ 'timestamp': value['timestamp'],
180
180
  'browser_location': value['browserLocation'],
181
181
  'other_info_json': value['otherInfoJson'],
182
- 'created': value['created'] == null ? value['created'] : value['created'].toISOString(),
182
+ 'created': value['created'],
183
183
  };
184
184
  }
185
185
 
@@ -136,7 +136,8 @@ export const TrainingSessionStatusEnum = {
136
136
  Queued: 'queued',
137
137
  Inprogress: 'inprogress',
138
138
  Ready: 'ready',
139
- Failed: 'failed'
139
+ Failed: 'failed',
140
+ Stopped: 'stopped'
140
141
  } as const;
141
142
  export type TrainingSessionStatusEnum = typeof TrainingSessionStatusEnum[keyof typeof TrainingSessionStatusEnum];
142
143
 
@@ -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';