@knowledge-stack/ksapi 2.15.1 → 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/DocumentVersionsApi.d.ts +3 -3
- package/dist/apis/DocumentVersionsApi.js +2 -2
- package/dist/esm/apis/DocumentVersionsApi.d.ts +3 -3
- package/dist/esm/apis/DocumentVersionsApi.js +2 -2
- package/docs/DocumentVersionsApi.md +3 -3
- package/package.json +1 -1
- package/src/apis/DocumentVersionsApi.ts +5 -5
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@
|
|
1
|
+
# @knowledge-stack/ksapi@3.0.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -727,7 +727,7 @@ and is automatically generated by the
|
|
|
727
727
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
728
728
|
|
|
729
729
|
- API version: `0.1.0`
|
|
730
|
-
- Package version: `
|
|
730
|
+
- Package version: `3.0.0`
|
|
731
731
|
- Generator version: `7.21.0`
|
|
732
732
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
733
733
|
|
|
@@ -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)
|
|
@@ -557,8 +557,8 @@ class DocumentVersionsApi extends runtime.BaseAPI {
|
|
|
557
557
|
if (requestParameters['sortDir'] != null) {
|
|
558
558
|
queryParameters['sort_dir'] = requestParameters['sortDir'];
|
|
559
559
|
}
|
|
560
|
-
if (requestParameters['
|
|
561
|
-
queryParameters['
|
|
560
|
+
if (requestParameters['uploaderUserId'] != null) {
|
|
561
|
+
queryParameters['uploader_user_id'] = requestParameters['uploaderUserId'];
|
|
562
562
|
}
|
|
563
563
|
if (requestParameters['limit'] != null) {
|
|
564
564
|
queryParameters['limit'] = requestParameters['limit'];
|
|
@@ -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'];
|
|
@@ -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
|
@@ -113,7 +113,7 @@ export interface ListDocumentVersionsRequest {
|
|
|
113
113
|
documentId: string;
|
|
114
114
|
sortBy?: DocumentVersionOrder;
|
|
115
115
|
sortDir?: SortDirection;
|
|
116
|
-
|
|
116
|
+
uploaderUserId?: string | null;
|
|
117
117
|
limit?: number;
|
|
118
118
|
offset?: number;
|
|
119
119
|
createdAfter?: Date | null;
|
|
@@ -372,7 +372,7 @@ export interface DocumentVersionsApiInterface {
|
|
|
372
372
|
* @param {string} documentId Document ID to list versions for
|
|
373
373
|
* @param {DocumentVersionOrder} [sortBy] Field to sort versions by (default: VERSION)
|
|
374
374
|
* @param {SortDirection} [sortDir] Sort direction; overrides the field\'s natural default
|
|
375
|
-
* @param {string} [
|
|
375
|
+
* @param {string} [uploaderUserId] Filter to versions created by this user
|
|
376
376
|
* @param {number} [limit] Number of items per page
|
|
377
377
|
* @param {number} [offset] Number of items to skip
|
|
378
378
|
* @param {Date} [createdAfter] Only items created at or after this timestamp (inclusive)
|
|
@@ -390,7 +390,7 @@ export interface DocumentVersionsApiInterface {
|
|
|
390
390
|
* @param {string} documentId Document ID to list versions for
|
|
391
391
|
* @param {DocumentVersionOrder} [sortBy] Field to sort versions by (default: VERSION)
|
|
392
392
|
* @param {SortDirection} [sortDir] Sort direction; overrides the field\'s natural default
|
|
393
|
-
* @param {string} [
|
|
393
|
+
* @param {string} [uploaderUserId] Filter to versions created by this user
|
|
394
394
|
* @param {number} [limit] Number of items per page
|
|
395
395
|
* @param {number} [offset] Number of items to skip
|
|
396
396
|
* @param {Date} [createdAfter] Only items created at or after this timestamp (inclusive)
|
|
@@ -1025,8 +1025,8 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
|
|
|
1025
1025
|
queryParameters['sort_dir'] = requestParameters['sortDir'];
|
|
1026
1026
|
}
|
|
1027
1027
|
|
|
1028
|
-
if (requestParameters['
|
|
1029
|
-
queryParameters['
|
|
1028
|
+
if (requestParameters['uploaderUserId'] != null) {
|
|
1029
|
+
queryParameters['uploader_user_id'] = requestParameters['uploaderUserId'];
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
1032
1032
|
if (requestParameters['limit'] != null) {
|