@knowledge-stack/ksapi 2.15.0 → 3.0.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 +2 -2
- package/dist/apis/AdminKbApi.d.ts +7 -7
- package/dist/apis/AdminKbApi.js +3 -3
- package/dist/apis/AdminWorkflowsApi.d.ts +26 -26
- package/dist/apis/AdminWorkflowsApi.js +18 -18
- package/dist/apis/DocumentVersionsApi.d.ts +3 -3
- package/dist/apis/DocumentVersionsApi.js +2 -2
- package/dist/esm/apis/AdminKbApi.d.ts +7 -7
- package/dist/esm/apis/AdminKbApi.js +3 -3
- package/dist/esm/apis/AdminWorkflowsApi.d.ts +26 -26
- package/dist/esm/apis/AdminWorkflowsApi.js +18 -18
- package/dist/esm/apis/DocumentVersionsApi.d.ts +3 -3
- package/dist/esm/apis/DocumentVersionsApi.js +2 -2
- package/docs/AdminKbApi.md +8 -8
- package/docs/AdminWorkflowsApi.md +32 -32
- package/docs/DocumentVersionsApi.md +3 -3
- package/package.json +1 -1
- package/src/apis/AdminKbApi.ts +11 -11
- package/src/apis/AdminWorkflowsApi.ts +50 -50
- package/src/apis/DocumentVersionsApi.ts +5 -5
|
@@ -32,18 +32,18 @@ export class AdminWorkflowsApi extends runtime.BaseAPI {
|
|
|
32
32
|
getAdminWorkflowByHourRequestOpts(requestParameters) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
const queryParameters = {};
|
|
35
|
-
if (requestParameters['since'] != null) {
|
|
36
|
-
queryParameters['since'] = requestParameters['since'].toISOString();
|
|
37
|
-
}
|
|
38
|
-
if (requestParameters['until'] != null) {
|
|
39
|
-
queryParameters['until'] = requestParameters['until'].toISOString();
|
|
40
|
-
}
|
|
41
35
|
if (requestParameters['timezone'] != null) {
|
|
42
36
|
queryParameters['timezone'] = requestParameters['timezone'];
|
|
43
37
|
}
|
|
44
38
|
if (requestParameters['definitionId'] != null) {
|
|
45
39
|
queryParameters['definition_id'] = requestParameters['definitionId'];
|
|
46
40
|
}
|
|
41
|
+
if (requestParameters['since'] != null) {
|
|
42
|
+
queryParameters['since'] = requestParameters['since'].toISOString();
|
|
43
|
+
}
|
|
44
|
+
if (requestParameters['until'] != null) {
|
|
45
|
+
queryParameters['until'] = requestParameters['until'].toISOString();
|
|
46
|
+
}
|
|
47
47
|
const headerParameters = {};
|
|
48
48
|
if (this.configuration && this.configuration.accessToken) {
|
|
49
49
|
const token = this.configuration.accessToken;
|
|
@@ -88,15 +88,15 @@ export class AdminWorkflowsApi extends runtime.BaseAPI {
|
|
|
88
88
|
getAdminWorkflowLeaderboardRequestOpts(requestParameters) {
|
|
89
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
90
|
const queryParameters = {};
|
|
91
|
+
if (requestParameters['limit'] != null) {
|
|
92
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
93
|
+
}
|
|
91
94
|
if (requestParameters['since'] != null) {
|
|
92
95
|
queryParameters['since'] = requestParameters['since'].toISOString();
|
|
93
96
|
}
|
|
94
97
|
if (requestParameters['until'] != null) {
|
|
95
98
|
queryParameters['until'] = requestParameters['until'].toISOString();
|
|
96
99
|
}
|
|
97
|
-
if (requestParameters['limit'] != null) {
|
|
98
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
99
|
-
}
|
|
100
100
|
const headerParameters = {};
|
|
101
101
|
if (this.configuration && this.configuration.accessToken) {
|
|
102
102
|
const token = this.configuration.accessToken;
|
|
@@ -191,15 +191,15 @@ export class AdminWorkflowsApi extends runtime.BaseAPI {
|
|
|
191
191
|
getAdminWorkflowSummaryRequestOpts(requestParameters) {
|
|
192
192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
193
193
|
const queryParameters = {};
|
|
194
|
+
if (requestParameters['definitionId'] != null) {
|
|
195
|
+
queryParameters['definition_id'] = requestParameters['definitionId'];
|
|
196
|
+
}
|
|
194
197
|
if (requestParameters['since'] != null) {
|
|
195
198
|
queryParameters['since'] = requestParameters['since'].toISOString();
|
|
196
199
|
}
|
|
197
200
|
if (requestParameters['until'] != null) {
|
|
198
201
|
queryParameters['until'] = requestParameters['until'].toISOString();
|
|
199
202
|
}
|
|
200
|
-
if (requestParameters['definitionId'] != null) {
|
|
201
|
-
queryParameters['definition_id'] = requestParameters['definitionId'];
|
|
202
|
-
}
|
|
203
203
|
const headerParameters = {};
|
|
204
204
|
if (this.configuration && this.configuration.accessToken) {
|
|
205
205
|
const token = this.configuration.accessToken;
|
|
@@ -244,6 +244,12 @@ export class AdminWorkflowsApi extends runtime.BaseAPI {
|
|
|
244
244
|
getAdminWorkflowTimeseriesRequestOpts(requestParameters) {
|
|
245
245
|
return __awaiter(this, void 0, void 0, function* () {
|
|
246
246
|
const queryParameters = {};
|
|
247
|
+
if (requestParameters['timezone'] != null) {
|
|
248
|
+
queryParameters['timezone'] = requestParameters['timezone'];
|
|
249
|
+
}
|
|
250
|
+
if (requestParameters['definitionId'] != null) {
|
|
251
|
+
queryParameters['definition_id'] = requestParameters['definitionId'];
|
|
252
|
+
}
|
|
247
253
|
if (requestParameters['since'] != null) {
|
|
248
254
|
queryParameters['since'] = requestParameters['since'].toISOString();
|
|
249
255
|
}
|
|
@@ -253,12 +259,6 @@ export class AdminWorkflowsApi extends runtime.BaseAPI {
|
|
|
253
259
|
if (requestParameters['bucket'] != null) {
|
|
254
260
|
queryParameters['bucket'] = requestParameters['bucket'];
|
|
255
261
|
}
|
|
256
|
-
if (requestParameters['timezone'] != null) {
|
|
257
|
-
queryParameters['timezone'] = requestParameters['timezone'];
|
|
258
|
-
}
|
|
259
|
-
if (requestParameters['definitionId'] != null) {
|
|
260
|
-
queryParameters['definition_id'] = requestParameters['definitionId'];
|
|
261
|
-
}
|
|
262
262
|
const headerParameters = {};
|
|
263
263
|
if (this.configuration && this.configuration.accessToken) {
|
|
264
264
|
const token = this.configuration.accessToken;
|
|
@@ -51,7 +51,7 @@ export interface ListDocumentVersionsRequest {
|
|
|
51
51
|
documentId: string;
|
|
52
52
|
sortBy?: DocumentVersionOrder;
|
|
53
53
|
sortDir?: SortDirection;
|
|
54
|
-
|
|
54
|
+
uploaderUserId?: string | null;
|
|
55
55
|
limit?: number;
|
|
56
56
|
offset?: number;
|
|
57
57
|
createdAfter?: Date | null;
|
|
@@ -281,7 +281,7 @@ export interface DocumentVersionsApiInterface {
|
|
|
281
281
|
* @param {string} documentId Document ID to list versions for
|
|
282
282
|
* @param {DocumentVersionOrder} [sortBy] Field to sort versions by (default: VERSION)
|
|
283
283
|
* @param {SortDirection} [sortDir] Sort direction; overrides the field\'s natural default
|
|
284
|
-
* @param {string} [
|
|
284
|
+
* @param {string} [uploaderUserId] Filter to versions created by this user
|
|
285
285
|
* @param {number} [limit] Number of items per page
|
|
286
286
|
* @param {number} [offset] Number of items to skip
|
|
287
287
|
* @param {Date} [createdAfter] Only items created at or after this timestamp (inclusive)
|
|
@@ -298,7 +298,7 @@ export interface DocumentVersionsApiInterface {
|
|
|
298
298
|
* @param {string} documentId Document ID to list versions for
|
|
299
299
|
* @param {DocumentVersionOrder} [sortBy] Field to sort versions by (default: VERSION)
|
|
300
300
|
* @param {SortDirection} [sortDir] Sort direction; overrides the field\'s natural default
|
|
301
|
-
* @param {string} [
|
|
301
|
+
* @param {string} [uploaderUserId] Filter to versions created by this user
|
|
302
302
|
* @param {number} [limit] Number of items per page
|
|
303
303
|
* @param {number} [offset] Number of items to skip
|
|
304
304
|
* @param {Date} [createdAfter] Only items created at or after this timestamp (inclusive)
|
|
@@ -521,8 +521,8 @@ export class DocumentVersionsApi extends runtime.BaseAPI {
|
|
|
521
521
|
if (requestParameters['sortDir'] != null) {
|
|
522
522
|
queryParameters['sort_dir'] = requestParameters['sortDir'];
|
|
523
523
|
}
|
|
524
|
-
if (requestParameters['
|
|
525
|
-
queryParameters['
|
|
524
|
+
if (requestParameters['uploaderUserId'] != null) {
|
|
525
|
+
queryParameters['uploader_user_id'] = requestParameters['uploaderUserId'];
|
|
526
526
|
}
|
|
527
527
|
if (requestParameters['limit'] != null) {
|
|
528
528
|
queryParameters['limit'] = requestParameters['limit'];
|
package/docs/AdminKbApi.md
CHANGED
|
@@ -77,7 +77,7 @@ This endpoint does not need any parameter.
|
|
|
77
77
|
|
|
78
78
|
## getAdminKbTimeseries
|
|
79
79
|
|
|
80
|
-
> KbTimeseriesResponse getAdminKbTimeseries(metric, since, until, bucket
|
|
80
|
+
> KbTimeseriesResponse getAdminKbTimeseries(metric, timezone, since, until, bucket)
|
|
81
81
|
|
|
82
82
|
Get Admin Kb Timeseries Handler
|
|
83
83
|
|
|
@@ -105,14 +105,14 @@ async function example() {
|
|
|
105
105
|
const body = {
|
|
106
106
|
// KbMetric | Which KB metric to bucket.
|
|
107
107
|
metric: ...,
|
|
108
|
-
//
|
|
108
|
+
// string | IANA tz override; defaults to tenant setting. (optional)
|
|
109
|
+
timezone: timezone_example,
|
|
110
|
+
// Date | Window start (inclusive). Defaults to 7 days ago. (optional)
|
|
109
111
|
since: 2013-10-20T19:20:30+01:00,
|
|
110
|
-
// Date | Window end. (optional)
|
|
112
|
+
// Date | Window end (inclusive). (optional)
|
|
111
113
|
until: 2013-10-20T19:20:30+01:00,
|
|
112
114
|
// TimeBucket | Bucket size. (optional)
|
|
113
115
|
bucket: ...,
|
|
114
|
-
// string | IANA tz override; defaults to tenant setting. (optional)
|
|
115
|
-
timezone: timezone_example,
|
|
116
116
|
} satisfies GetAdminKbTimeseriesRequest;
|
|
117
117
|
|
|
118
118
|
try {
|
|
@@ -133,10 +133,10 @@ example().catch(console.error);
|
|
|
133
133
|
| Name | Type | Description | Notes |
|
|
134
134
|
|------------- | ------------- | ------------- | -------------|
|
|
135
135
|
| **metric** | `KbMetric` | Which KB metric to bucket. | [Defaults to `undefined`] [Enum: document_uploads, ingestion_completed, ingestion_failed, message, search] |
|
|
136
|
-
| **since** | `Date` | Window start. | [Optional] [Defaults to `undefined`] |
|
|
137
|
-
| **until** | `Date` | Window end. | [Optional] [Defaults to `undefined`] |
|
|
138
|
-
| **bucket** | `TimeBucket` | Bucket size. | [Optional] [Defaults to `undefined`] [Enum: hour, day, week, month] |
|
|
139
136
|
| **timezone** | `string` | IANA tz override; defaults to tenant setting. | [Optional] [Defaults to `undefined`] |
|
|
137
|
+
| **since** | `Date` | Window start (inclusive). Defaults to 7 days ago. | [Optional] [Defaults to `undefined`] |
|
|
138
|
+
| **until** | `Date` | Window end (inclusive). | [Optional] [Defaults to `undefined`] |
|
|
139
|
+
| **bucket** | `TimeBucket` | Bucket size. | [Optional] [Defaults to `undefined`] [Enum: hour, day, week, month] |
|
|
140
140
|
|
|
141
141
|
### Return type
|
|
142
142
|
|
|
@@ -14,7 +14,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
14
14
|
|
|
15
15
|
## getAdminWorkflowByHour
|
|
16
16
|
|
|
17
|
-
> HourHistogramResponse getAdminWorkflowByHour(
|
|
17
|
+
> HourHistogramResponse getAdminWorkflowByHour(timezone, definitionId, since, until)
|
|
18
18
|
|
|
19
19
|
Get Admin Workflow By Hour Handler
|
|
20
20
|
|
|
@@ -40,14 +40,14 @@ async function example() {
|
|
|
40
40
|
const api = new AdminWorkflowsApi(config);
|
|
41
41
|
|
|
42
42
|
const body = {
|
|
43
|
-
// Date | Window start. (optional)
|
|
44
|
-
since: 2013-10-20T19:20:30+01:00,
|
|
45
|
-
// Date | Window end. (optional)
|
|
46
|
-
until: 2013-10-20T19:20:30+01:00,
|
|
47
43
|
// string | IANA tz override; defaults to tenant setting. (optional)
|
|
48
44
|
timezone: timezone_example,
|
|
49
45
|
// string | Scope to one workflow. (optional)
|
|
50
46
|
definitionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
47
|
+
// Date | Window start (inclusive). Defaults to 7 days ago. (optional)
|
|
48
|
+
since: 2013-10-20T19:20:30+01:00,
|
|
49
|
+
// Date | Window end (inclusive). (optional)
|
|
50
|
+
until: 2013-10-20T19:20:30+01:00,
|
|
51
51
|
} satisfies GetAdminWorkflowByHourRequest;
|
|
52
52
|
|
|
53
53
|
try {
|
|
@@ -67,10 +67,10 @@ example().catch(console.error);
|
|
|
67
67
|
|
|
68
68
|
| Name | Type | Description | Notes |
|
|
69
69
|
|------------- | ------------- | ------------- | -------------|
|
|
70
|
-
| **since** | `Date` | Window start. | [Optional] [Defaults to `undefined`] |
|
|
71
|
-
| **until** | `Date` | Window end. | [Optional] [Defaults to `undefined`] |
|
|
72
70
|
| **timezone** | `string` | IANA tz override; defaults to tenant setting. | [Optional] [Defaults to `undefined`] |
|
|
73
71
|
| **definitionId** | `string` | Scope to one workflow. | [Optional] [Defaults to `undefined`] |
|
|
72
|
+
| **since** | `Date` | Window start (inclusive). Defaults to 7 days ago. | [Optional] [Defaults to `undefined`] |
|
|
73
|
+
| **until** | `Date` | Window end (inclusive). | [Optional] [Defaults to `undefined`] |
|
|
74
74
|
|
|
75
75
|
### Return type
|
|
76
76
|
|
|
@@ -98,7 +98,7 @@ example().catch(console.error);
|
|
|
98
98
|
|
|
99
99
|
## getAdminWorkflowLeaderboard
|
|
100
100
|
|
|
101
|
-
> WorkflowLeaderboardResponse getAdminWorkflowLeaderboard(since, until
|
|
101
|
+
> WorkflowLeaderboardResponse getAdminWorkflowLeaderboard(limit, since, until)
|
|
102
102
|
|
|
103
103
|
Get Admin Workflow Leaderboard Handler
|
|
104
104
|
|
|
@@ -124,12 +124,12 @@ async function example() {
|
|
|
124
124
|
const api = new AdminWorkflowsApi(config);
|
|
125
125
|
|
|
126
126
|
const body = {
|
|
127
|
-
// Date | Window start. (optional)
|
|
128
|
-
since: 2013-10-20T19:20:30+01:00,
|
|
129
|
-
// Date | Window end. (optional)
|
|
130
|
-
until: 2013-10-20T19:20:30+01:00,
|
|
131
127
|
// number | Top-N per leaderboard. (optional)
|
|
132
128
|
limit: 56,
|
|
129
|
+
// Date | Window start (inclusive). Defaults to 7 days ago. (optional)
|
|
130
|
+
since: 2013-10-20T19:20:30+01:00,
|
|
131
|
+
// Date | Window end (inclusive). (optional)
|
|
132
|
+
until: 2013-10-20T19:20:30+01:00,
|
|
133
133
|
} satisfies GetAdminWorkflowLeaderboardRequest;
|
|
134
134
|
|
|
135
135
|
try {
|
|
@@ -149,9 +149,9 @@ example().catch(console.error);
|
|
|
149
149
|
|
|
150
150
|
| Name | Type | Description | Notes |
|
|
151
151
|
|------------- | ------------- | ------------- | -------------|
|
|
152
|
-
| **since** | `Date` | Window start. | [Optional] [Defaults to `undefined`] |
|
|
153
|
-
| **until** | `Date` | Window end. | [Optional] [Defaults to `undefined`] |
|
|
154
152
|
| **limit** | `number` | Top-N per leaderboard. | [Optional] [Defaults to `10`] |
|
|
153
|
+
| **since** | `Date` | Window start (inclusive). Defaults to 7 days ago. | [Optional] [Defaults to `undefined`] |
|
|
154
|
+
| **until** | `Date` | Window end (inclusive). | [Optional] [Defaults to `undefined`] |
|
|
155
155
|
|
|
156
156
|
### Return type
|
|
157
157
|
|
|
@@ -205,9 +205,9 @@ async function example() {
|
|
|
205
205
|
const api = new AdminWorkflowsApi(config);
|
|
206
206
|
|
|
207
207
|
const body = {
|
|
208
|
-
// Date | Window start. (optional)
|
|
208
|
+
// Date | Window start (inclusive). Defaults to 7 days ago. (optional)
|
|
209
209
|
since: 2013-10-20T19:20:30+01:00,
|
|
210
|
-
// Date | Window end. (optional)
|
|
210
|
+
// Date | Window end (inclusive). (optional)
|
|
211
211
|
until: 2013-10-20T19:20:30+01:00,
|
|
212
212
|
} satisfies GetAdminWorkflowOutputStatsRequest;
|
|
213
213
|
|
|
@@ -228,8 +228,8 @@ example().catch(console.error);
|
|
|
228
228
|
|
|
229
229
|
| Name | Type | Description | Notes |
|
|
230
230
|
|------------- | ------------- | ------------- | -------------|
|
|
231
|
-
| **since** | `Date` | Window start. | [Optional] [Defaults to `undefined`] |
|
|
232
|
-
| **until** | `Date` | Window end. | [Optional] [Defaults to `undefined`] |
|
|
231
|
+
| **since** | `Date` | Window start (inclusive). Defaults to 7 days ago. | [Optional] [Defaults to `undefined`] |
|
|
232
|
+
| **until** | `Date` | Window end (inclusive). | [Optional] [Defaults to `undefined`] |
|
|
233
233
|
|
|
234
234
|
### Return type
|
|
235
235
|
|
|
@@ -257,7 +257,7 @@ example().catch(console.error);
|
|
|
257
257
|
|
|
258
258
|
## getAdminWorkflowSummary
|
|
259
259
|
|
|
260
|
-
> WorkflowRunSummaryResponse getAdminWorkflowSummary(since, until
|
|
260
|
+
> WorkflowRunSummaryResponse getAdminWorkflowSummary(definitionId, since, until)
|
|
261
261
|
|
|
262
262
|
Get Admin Workflow Summary Handler
|
|
263
263
|
|
|
@@ -283,12 +283,12 @@ async function example() {
|
|
|
283
283
|
const api = new AdminWorkflowsApi(config);
|
|
284
284
|
|
|
285
285
|
const body = {
|
|
286
|
+
// string | Scope all numbers to one workflow. (optional)
|
|
287
|
+
definitionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
286
288
|
// Date | Window start (inclusive). Defaults to 7 days ago. (optional)
|
|
287
289
|
since: 2013-10-20T19:20:30+01:00,
|
|
288
290
|
// Date | Window end (inclusive). (optional)
|
|
289
291
|
until: 2013-10-20T19:20:30+01:00,
|
|
290
|
-
// string | Scope all numbers to one workflow. (optional)
|
|
291
|
-
definitionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
292
292
|
} satisfies GetAdminWorkflowSummaryRequest;
|
|
293
293
|
|
|
294
294
|
try {
|
|
@@ -308,9 +308,9 @@ example().catch(console.error);
|
|
|
308
308
|
|
|
309
309
|
| Name | Type | Description | Notes |
|
|
310
310
|
|------------- | ------------- | ------------- | -------------|
|
|
311
|
+
| **definitionId** | `string` | Scope all numbers to one workflow. | [Optional] [Defaults to `undefined`] |
|
|
311
312
|
| **since** | `Date` | Window start (inclusive). Defaults to 7 days ago. | [Optional] [Defaults to `undefined`] |
|
|
312
313
|
| **until** | `Date` | Window end (inclusive). | [Optional] [Defaults to `undefined`] |
|
|
313
|
-
| **definitionId** | `string` | Scope all numbers to one workflow. | [Optional] [Defaults to `undefined`] |
|
|
314
314
|
|
|
315
315
|
### Return type
|
|
316
316
|
|
|
@@ -338,7 +338,7 @@ example().catch(console.error);
|
|
|
338
338
|
|
|
339
339
|
## getAdminWorkflowTimeseries
|
|
340
340
|
|
|
341
|
-
> RunTimeseriesResponse getAdminWorkflowTimeseries(
|
|
341
|
+
> RunTimeseriesResponse getAdminWorkflowTimeseries(timezone, definitionId, since, until, bucket)
|
|
342
342
|
|
|
343
343
|
Get Admin Workflow Timeseries Handler
|
|
344
344
|
|
|
@@ -364,16 +364,16 @@ async function example() {
|
|
|
364
364
|
const api = new AdminWorkflowsApi(config);
|
|
365
365
|
|
|
366
366
|
const body = {
|
|
367
|
-
// Date | Window start. (optional)
|
|
368
|
-
since: 2013-10-20T19:20:30+01:00,
|
|
369
|
-
// Date | Window end. (optional)
|
|
370
|
-
until: 2013-10-20T19:20:30+01:00,
|
|
371
|
-
// TimeBucket | Bucket size. (optional)
|
|
372
|
-
bucket: ...,
|
|
373
367
|
// string | IANA tz override; defaults to tenant setting. (optional)
|
|
374
368
|
timezone: timezone_example,
|
|
375
369
|
// string | Scope to one workflow. (optional)
|
|
376
370
|
definitionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
371
|
+
// Date | Window start (inclusive). Defaults to 7 days ago. (optional)
|
|
372
|
+
since: 2013-10-20T19:20:30+01:00,
|
|
373
|
+
// Date | Window end (inclusive). (optional)
|
|
374
|
+
until: 2013-10-20T19:20:30+01:00,
|
|
375
|
+
// TimeBucket | Bucket size. (optional)
|
|
376
|
+
bucket: ...,
|
|
377
377
|
} satisfies GetAdminWorkflowTimeseriesRequest;
|
|
378
378
|
|
|
379
379
|
try {
|
|
@@ -393,11 +393,11 @@ example().catch(console.error);
|
|
|
393
393
|
|
|
394
394
|
| Name | Type | Description | Notes |
|
|
395
395
|
|------------- | ------------- | ------------- | -------------|
|
|
396
|
-
| **since** | `Date` | Window start. | [Optional] [Defaults to `undefined`] |
|
|
397
|
-
| **until** | `Date` | Window end. | [Optional] [Defaults to `undefined`] |
|
|
398
|
-
| **bucket** | `TimeBucket` | Bucket size. | [Optional] [Defaults to `undefined`] [Enum: hour, day, week, month] |
|
|
399
396
|
| **timezone** | `string` | IANA tz override; defaults to tenant setting. | [Optional] [Defaults to `undefined`] |
|
|
400
397
|
| **definitionId** | `string` | Scope to one workflow. | [Optional] [Defaults to `undefined`] |
|
|
398
|
+
| **since** | `Date` | Window start (inclusive). Defaults to 7 days ago. | [Optional] [Defaults to `undefined`] |
|
|
399
|
+
| **until** | `Date` | Window end (inclusive). | [Optional] [Defaults to `undefined`] |
|
|
400
|
+
| **bucket** | `TimeBucket` | Bucket size. | [Optional] [Defaults to `undefined`] [Enum: hour, day, week, month] |
|
|
401
401
|
|
|
402
402
|
### Return type
|
|
403
403
|
|
|
@@ -720,7 +720,7 @@ example().catch(console.error);
|
|
|
720
720
|
|
|
721
721
|
## listDocumentVersions
|
|
722
722
|
|
|
723
|
-
> PaginatedResponseDocumentVersionResponse listDocumentVersions(documentId, sortBy, sortDir,
|
|
723
|
+
> PaginatedResponseDocumentVersionResponse listDocumentVersions(documentId, sortBy, sortDir, uploaderUserId, limit, offset, createdAfter, createdBefore, updatedAfter, updatedBefore)
|
|
724
724
|
|
|
725
725
|
List Document Versions Handler
|
|
726
726
|
|
|
@@ -753,7 +753,7 @@ async function example() {
|
|
|
753
753
|
// SortDirection | Sort direction; overrides the field\'s natural default (optional)
|
|
754
754
|
sortDir: ...,
|
|
755
755
|
// string | Filter to versions created by this user (optional)
|
|
756
|
-
|
|
756
|
+
uploaderUserId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
757
757
|
// number | Number of items per page (optional)
|
|
758
758
|
limit: 56,
|
|
759
759
|
// number | Number of items to skip (optional)
|
|
@@ -788,7 +788,7 @@ example().catch(console.error);
|
|
|
788
788
|
| **documentId** | `string` | Document ID to list versions for | [Defaults to `undefined`] |
|
|
789
789
|
| **sortBy** | `DocumentVersionOrder` | Field to sort versions by (default: VERSION) | [Optional] [Defaults to `undefined`] [Enum: VERSION, CREATED_AT] |
|
|
790
790
|
| **sortDir** | `SortDirection` | Sort direction; overrides the field\'s natural default | [Optional] [Defaults to `undefined`] [Enum: ASC, DESC] |
|
|
791
|
-
| **
|
|
791
|
+
| **uploaderUserId** | `string` | Filter to versions created by this user | [Optional] [Defaults to `undefined`] |
|
|
792
792
|
| **limit** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
|
|
793
793
|
| **offset** | `number` | Number of items to skip | [Optional] [Defaults to `0`] |
|
|
794
794
|
| **createdAfter** | `Date` | Only items created at or after this timestamp (inclusive) | [Optional] [Defaults to `undefined`] |
|
package/package.json
CHANGED
package/src/apis/AdminKbApi.ts
CHANGED
|
@@ -39,10 +39,10 @@ import {
|
|
|
39
39
|
|
|
40
40
|
export interface GetAdminKbTimeseriesRequest {
|
|
41
41
|
metric: KbMetric;
|
|
42
|
+
timezone?: string | null;
|
|
42
43
|
since?: Date | null;
|
|
43
44
|
until?: Date | null;
|
|
44
45
|
bucket?: TimeBucket;
|
|
45
|
-
timezone?: string | null;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -77,10 +77,10 @@ export interface AdminKbApiInterface {
|
|
|
77
77
|
/**
|
|
78
78
|
* Creates request options for getAdminKbTimeseries without sending the request
|
|
79
79
|
* @param {KbMetric} metric Which KB metric to bucket.
|
|
80
|
-
* @param {Date} [since] Window start.
|
|
81
|
-
* @param {Date} [until] Window end.
|
|
82
|
-
* @param {TimeBucket} [bucket] Bucket size.
|
|
83
80
|
* @param {string} [timezone] IANA tz override; defaults to tenant setting.
|
|
81
|
+
* @param {Date} [since] Window start (inclusive). Defaults to 7 days ago.
|
|
82
|
+
* @param {Date} [until] Window end (inclusive).
|
|
83
|
+
* @param {TimeBucket} [bucket] Bucket size.
|
|
84
84
|
* @throws {RequiredError}
|
|
85
85
|
* @memberof AdminKbApiInterface
|
|
86
86
|
*/
|
|
@@ -90,10 +90,10 @@ export interface AdminKbApiInterface {
|
|
|
90
90
|
* A knowledge-base metric bucketed over time, in the resolved timezone.
|
|
91
91
|
* @summary Get Admin Kb Timeseries Handler
|
|
92
92
|
* @param {KbMetric} metric Which KB metric to bucket.
|
|
93
|
-
* @param {Date} [since] Window start.
|
|
94
|
-
* @param {Date} [until] Window end.
|
|
95
|
-
* @param {TimeBucket} [bucket] Bucket size.
|
|
96
93
|
* @param {string} [timezone] IANA tz override; defaults to tenant setting.
|
|
94
|
+
* @param {Date} [since] Window start (inclusive). Defaults to 7 days ago.
|
|
95
|
+
* @param {Date} [until] Window end (inclusive).
|
|
96
|
+
* @param {TimeBucket} [bucket] Bucket size.
|
|
97
97
|
* @param {*} [options] Override http request option.
|
|
98
98
|
* @throws {RequiredError}
|
|
99
99
|
* @memberof AdminKbApiInterface
|
|
@@ -177,6 +177,10 @@ export class AdminKbApi extends runtime.BaseAPI implements AdminKbApiInterface {
|
|
|
177
177
|
queryParameters['metric'] = requestParameters['metric'];
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
if (requestParameters['timezone'] != null) {
|
|
181
|
+
queryParameters['timezone'] = requestParameters['timezone'];
|
|
182
|
+
}
|
|
183
|
+
|
|
180
184
|
if (requestParameters['since'] != null) {
|
|
181
185
|
queryParameters['since'] = (requestParameters['since'] as any).toISOString();
|
|
182
186
|
}
|
|
@@ -189,10 +193,6 @@ export class AdminKbApi extends runtime.BaseAPI implements AdminKbApiInterface {
|
|
|
189
193
|
queryParameters['bucket'] = requestParameters['bucket'];
|
|
190
194
|
}
|
|
191
195
|
|
|
192
|
-
if (requestParameters['timezone'] != null) {
|
|
193
|
-
queryParameters['timezone'] = requestParameters['timezone'];
|
|
194
|
-
}
|
|
195
|
-
|
|
196
196
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
197
197
|
|
|
198
198
|
if (this.configuration && this.configuration.accessToken) {
|