@knowledge-stack/ksapi 1.4.0 → 1.6.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/.openapi-generator/FILES +10 -0
- package/README.md +2 -2
- package/dist/apis/DocumentVersionsApi.d.ts +146 -0
- package/dist/apis/DocumentVersionsApi.js +168 -0
- package/dist/apis/DocumentsApi.d.ts +179 -0
- package/dist/apis/DocumentsApi.js +206 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/DocumentVersionsApi.d.ts +146 -0
- package/dist/esm/apis/DocumentVersionsApi.js +164 -0
- package/dist/esm/apis/DocumentsApi.d.ts +179 -0
- package/dist/esm/apis/DocumentsApi.js +202 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/CreateDocumentRequest.d.ts +67 -0
- package/dist/esm/models/CreateDocumentRequest.js +63 -0
- package/dist/esm/models/DocumentOrigin.d.ts +25 -0
- package/dist/esm/models/DocumentOrigin.js +43 -0
- package/dist/esm/models/DocumentResponse.d.ts +110 -0
- package/dist/esm/models/DocumentResponse.js +87 -0
- package/dist/esm/models/DocumentType.d.ts +25 -0
- package/dist/esm/models/DocumentType.js +43 -0
- package/dist/esm/models/DocumentVersionResponse.d.ts +92 -0
- package/dist/esm/models/DocumentVersionResponse.js +72 -0
- package/dist/esm/models/PaginatedResponseDocumentResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseDocumentResponse.js +70 -0
- package/dist/esm/models/PaginatedResponseDocumentVersionResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseDocumentVersionResponse.js +70 -0
- package/dist/esm/models/UpdateDocumentRequest.d.ts +59 -0
- package/dist/esm/models/UpdateDocumentRequest.js +51 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/CreateDocumentRequest.d.ts +67 -0
- package/dist/models/CreateDocumentRequest.js +71 -0
- package/dist/models/DocumentOrigin.d.ts +25 -0
- package/dist/models/DocumentOrigin.js +51 -0
- package/dist/models/DocumentResponse.d.ts +110 -0
- package/dist/models/DocumentResponse.js +95 -0
- package/dist/models/DocumentType.d.ts +25 -0
- package/dist/models/DocumentType.js +51 -0
- package/dist/models/DocumentVersionResponse.d.ts +92 -0
- package/dist/models/DocumentVersionResponse.js +80 -0
- package/dist/models/PaginatedResponseDocumentResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseDocumentResponse.js +78 -0
- package/dist/models/PaginatedResponseDocumentVersionResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseDocumentVersionResponse.js +78 -0
- package/dist/models/UpdateDocumentRequest.d.ts +59 -0
- package/dist/models/UpdateDocumentRequest.js +59 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/DocumentVersionsApi.ts +303 -0
- package/src/apis/DocumentsApi.ts +386 -0
- package/src/apis/index.ts +2 -0
- package/src/models/CreateDocumentRequest.ts +131 -0
- package/src/models/DocumentOrigin.ts +53 -0
- package/src/models/DocumentResponse.ts +197 -0
- package/src/models/DocumentType.ts +53 -0
- package/src/models/DocumentVersionResponse.ts +149 -0
- package/src/models/PaginatedResponseDocumentResponse.ts +130 -0
- package/src/models/PaginatedResponseDocumentVersionResponse.ts +130 -0
- package/src/models/UpdateDocumentRequest.ts +102 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
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
|
+
* Type of document.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const DocumentType: {
|
|
17
|
+
readonly Pdf: "PDF";
|
|
18
|
+
readonly Unknown: "UNKNOWN";
|
|
19
|
+
};
|
|
20
|
+
export type DocumentType = typeof DocumentType[keyof typeof DocumentType];
|
|
21
|
+
export declare function instanceOfDocumentType(value: any): boolean;
|
|
22
|
+
export declare function DocumentTypeFromJSON(json: any): DocumentType;
|
|
23
|
+
export declare function DocumentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentType;
|
|
24
|
+
export declare function DocumentTypeToJSON(value?: DocumentType | null): any;
|
|
25
|
+
export declare function DocumentTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DocumentType;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.DocumentType = void 0;
|
|
17
|
+
exports.instanceOfDocumentType = instanceOfDocumentType;
|
|
18
|
+
exports.DocumentTypeFromJSON = DocumentTypeFromJSON;
|
|
19
|
+
exports.DocumentTypeFromJSONTyped = DocumentTypeFromJSONTyped;
|
|
20
|
+
exports.DocumentTypeToJSON = DocumentTypeToJSON;
|
|
21
|
+
exports.DocumentTypeToJSONTyped = DocumentTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Type of document.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.DocumentType = {
|
|
27
|
+
Pdf: 'PDF',
|
|
28
|
+
Unknown: 'UNKNOWN'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfDocumentType(value) {
|
|
31
|
+
for (const key in exports.DocumentType) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.DocumentType, key)) {
|
|
33
|
+
if (exports.DocumentType[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function DocumentTypeFromJSON(json) {
|
|
41
|
+
return DocumentTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DocumentTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function DocumentTypeToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function DocumentTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
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
|
+
* DocumentVersion response model.
|
|
14
|
+
*
|
|
15
|
+
* Shared schema for DocumentVersion responses, used by Document endpoints
|
|
16
|
+
* and DocumentVersion endpoints.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface DocumentVersionResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface DocumentVersionResponse {
|
|
21
|
+
/**
|
|
22
|
+
* DocumentVersion ID
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof DocumentVersionResponse
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* PathPart ID
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof DocumentVersionResponse
|
|
31
|
+
*/
|
|
32
|
+
pathPartId: string;
|
|
33
|
+
/**
|
|
34
|
+
* Version number (0, 1, 2...)
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof DocumentVersionResponse
|
|
37
|
+
*/
|
|
38
|
+
version: number;
|
|
39
|
+
/**
|
|
40
|
+
* Auto-generated name from path_part (v0, v1, ...)
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof DocumentVersionResponse
|
|
43
|
+
*/
|
|
44
|
+
name: string;
|
|
45
|
+
/**
|
|
46
|
+
* Document's PathPart ID
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof DocumentVersionResponse
|
|
49
|
+
*/
|
|
50
|
+
parentId: string;
|
|
51
|
+
/**
|
|
52
|
+
* Tenant ID
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof DocumentVersionResponse
|
|
55
|
+
*/
|
|
56
|
+
tenantId: string;
|
|
57
|
+
/**
|
|
58
|
+
* Creation timestamp
|
|
59
|
+
* @type {Date}
|
|
60
|
+
* @memberof DocumentVersionResponse
|
|
61
|
+
*/
|
|
62
|
+
createdAt: Date;
|
|
63
|
+
/**
|
|
64
|
+
* Last update timestamp
|
|
65
|
+
* @type {Date}
|
|
66
|
+
* @memberof DocumentVersionResponse
|
|
67
|
+
*/
|
|
68
|
+
updatedAt: Date;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the DocumentVersionResponse interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfDocumentVersionResponse(value: object): value is DocumentVersionResponse;
|
|
74
|
+
export declare function DocumentVersionResponseFromJSON(json: any): DocumentVersionResponse;
|
|
75
|
+
export declare function DocumentVersionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentVersionResponse;
|
|
76
|
+
export declare function DocumentVersionResponseToJSON(json: any): DocumentVersionResponse;
|
|
77
|
+
export declare function DocumentVersionResponseToJSONTyped(value?: DocumentVersionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
78
|
+
export declare const DocumentVersionResponsePropertyValidationAttributesMap: {
|
|
79
|
+
[property: string]: {
|
|
80
|
+
maxLength?: number;
|
|
81
|
+
minLength?: number;
|
|
82
|
+
pattern?: string;
|
|
83
|
+
maximum?: number;
|
|
84
|
+
exclusiveMaximum?: boolean;
|
|
85
|
+
minimum?: number;
|
|
86
|
+
exclusiveMinimum?: boolean;
|
|
87
|
+
multipleOf?: number;
|
|
88
|
+
maxItems?: number;
|
|
89
|
+
minItems?: number;
|
|
90
|
+
uniqueItems?: boolean;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.DocumentVersionResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfDocumentVersionResponse = instanceOfDocumentVersionResponse;
|
|
18
|
+
exports.DocumentVersionResponseFromJSON = DocumentVersionResponseFromJSON;
|
|
19
|
+
exports.DocumentVersionResponseFromJSONTyped = DocumentVersionResponseFromJSONTyped;
|
|
20
|
+
exports.DocumentVersionResponseToJSON = DocumentVersionResponseToJSON;
|
|
21
|
+
exports.DocumentVersionResponseToJSONTyped = DocumentVersionResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the DocumentVersionResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfDocumentVersionResponse(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function DocumentVersionResponseFromJSON(json) {
|
|
45
|
+
return DocumentVersionResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'pathPartId': json['path_part_id'],
|
|
54
|
+
'version': json['version'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'parentId': json['parent_id'],
|
|
57
|
+
'tenantId': json['tenant_id'],
|
|
58
|
+
'createdAt': (new Date(json['created_at'])),
|
|
59
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function DocumentVersionResponseToJSON(json) {
|
|
63
|
+
return DocumentVersionResponseToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'path_part_id': value['pathPartId'],
|
|
72
|
+
'version': value['version'],
|
|
73
|
+
'name': value['name'],
|
|
74
|
+
'parent_id': value['parentId'],
|
|
75
|
+
'tenant_id': value['tenantId'],
|
|
76
|
+
'created_at': value['createdAt'].toISOString(),
|
|
77
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
exports.DocumentVersionResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
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 { DocumentResponse } from './DocumentResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseDocumentResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseDocumentResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<DocumentResponse>}
|
|
22
|
+
* @memberof PaginatedResponseDocumentResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<DocumentResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponseDocumentResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponseDocumentResponse
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponseDocumentResponse
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaginatedResponseDocumentResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaginatedResponseDocumentResponse(value: object): value is PaginatedResponseDocumentResponse;
|
|
48
|
+
export declare function PaginatedResponseDocumentResponseFromJSON(json: any): PaginatedResponseDocumentResponse;
|
|
49
|
+
export declare function PaginatedResponseDocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseDocumentResponse;
|
|
50
|
+
export declare function PaginatedResponseDocumentResponseToJSON(json: any): PaginatedResponseDocumentResponse;
|
|
51
|
+
export declare function PaginatedResponseDocumentResponseToJSONTyped(value?: PaginatedResponseDocumentResponse | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const PaginatedResponseDocumentResponsePropertyValidationAttributesMap: {
|
|
53
|
+
[property: string]: {
|
|
54
|
+
maxLength?: number;
|
|
55
|
+
minLength?: number;
|
|
56
|
+
pattern?: string;
|
|
57
|
+
maximum?: number;
|
|
58
|
+
exclusiveMaximum?: boolean;
|
|
59
|
+
minimum?: number;
|
|
60
|
+
exclusiveMinimum?: boolean;
|
|
61
|
+
multipleOf?: number;
|
|
62
|
+
maxItems?: number;
|
|
63
|
+
minItems?: number;
|
|
64
|
+
uniqueItems?: boolean;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.PaginatedResponseDocumentResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPaginatedResponseDocumentResponse = instanceOfPaginatedResponseDocumentResponse;
|
|
18
|
+
exports.PaginatedResponseDocumentResponseFromJSON = PaginatedResponseDocumentResponseFromJSON;
|
|
19
|
+
exports.PaginatedResponseDocumentResponseFromJSONTyped = PaginatedResponseDocumentResponseFromJSONTyped;
|
|
20
|
+
exports.PaginatedResponseDocumentResponseToJSON = PaginatedResponseDocumentResponseToJSON;
|
|
21
|
+
exports.PaginatedResponseDocumentResponseToJSONTyped = PaginatedResponseDocumentResponseToJSONTyped;
|
|
22
|
+
const DocumentResponse_1 = require("./DocumentResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedResponseDocumentResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedResponseDocumentResponse(value) {
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function PaginatedResponseDocumentResponseFromJSON(json) {
|
|
38
|
+
return PaginatedResponseDocumentResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function PaginatedResponseDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'items': (json['items'].map(DocumentResponse_1.DocumentResponseFromJSON)),
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
'limit': json['limit'],
|
|
48
|
+
'offset': json['offset'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PaginatedResponseDocumentResponseToJSON(json) {
|
|
52
|
+
return PaginatedResponseDocumentResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PaginatedResponseDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'items': (value['items'].map(DocumentResponse_1.DocumentResponseToJSON)),
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'limit': value['limit'],
|
|
62
|
+
'offset': value['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.PaginatedResponseDocumentResponsePropertyValidationAttributesMap = {
|
|
66
|
+
total: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
limit: {
|
|
71
|
+
minimum: 1,
|
|
72
|
+
exclusiveMinimum: false,
|
|
73
|
+
},
|
|
74
|
+
offset: {
|
|
75
|
+
minimum: 0,
|
|
76
|
+
exclusiveMinimum: false,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
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 { DocumentVersionResponse } from './DocumentVersionResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseDocumentVersionResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseDocumentVersionResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<DocumentVersionResponse>}
|
|
22
|
+
* @memberof PaginatedResponseDocumentVersionResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<DocumentVersionResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponseDocumentVersionResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponseDocumentVersionResponse
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponseDocumentVersionResponse
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaginatedResponseDocumentVersionResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaginatedResponseDocumentVersionResponse(value: object): value is PaginatedResponseDocumentVersionResponse;
|
|
48
|
+
export declare function PaginatedResponseDocumentVersionResponseFromJSON(json: any): PaginatedResponseDocumentVersionResponse;
|
|
49
|
+
export declare function PaginatedResponseDocumentVersionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseDocumentVersionResponse;
|
|
50
|
+
export declare function PaginatedResponseDocumentVersionResponseToJSON(json: any): PaginatedResponseDocumentVersionResponse;
|
|
51
|
+
export declare function PaginatedResponseDocumentVersionResponseToJSONTyped(value?: PaginatedResponseDocumentVersionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const PaginatedResponseDocumentVersionResponsePropertyValidationAttributesMap: {
|
|
53
|
+
[property: string]: {
|
|
54
|
+
maxLength?: number;
|
|
55
|
+
minLength?: number;
|
|
56
|
+
pattern?: string;
|
|
57
|
+
maximum?: number;
|
|
58
|
+
exclusiveMaximum?: boolean;
|
|
59
|
+
minimum?: number;
|
|
60
|
+
exclusiveMinimum?: boolean;
|
|
61
|
+
multipleOf?: number;
|
|
62
|
+
maxItems?: number;
|
|
63
|
+
minItems?: number;
|
|
64
|
+
uniqueItems?: boolean;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.PaginatedResponseDocumentVersionResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPaginatedResponseDocumentVersionResponse = instanceOfPaginatedResponseDocumentVersionResponse;
|
|
18
|
+
exports.PaginatedResponseDocumentVersionResponseFromJSON = PaginatedResponseDocumentVersionResponseFromJSON;
|
|
19
|
+
exports.PaginatedResponseDocumentVersionResponseFromJSONTyped = PaginatedResponseDocumentVersionResponseFromJSONTyped;
|
|
20
|
+
exports.PaginatedResponseDocumentVersionResponseToJSON = PaginatedResponseDocumentVersionResponseToJSON;
|
|
21
|
+
exports.PaginatedResponseDocumentVersionResponseToJSONTyped = PaginatedResponseDocumentVersionResponseToJSONTyped;
|
|
22
|
+
const DocumentVersionResponse_1 = require("./DocumentVersionResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedResponseDocumentVersionResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedResponseDocumentVersionResponse(value) {
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function PaginatedResponseDocumentVersionResponseFromJSON(json) {
|
|
38
|
+
return PaginatedResponseDocumentVersionResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function PaginatedResponseDocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'items': (json['items'].map(DocumentVersionResponse_1.DocumentVersionResponseFromJSON)),
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
'limit': json['limit'],
|
|
48
|
+
'offset': json['offset'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PaginatedResponseDocumentVersionResponseToJSON(json) {
|
|
52
|
+
return PaginatedResponseDocumentVersionResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PaginatedResponseDocumentVersionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'items': (value['items'].map(DocumentVersionResponse_1.DocumentVersionResponseToJSON)),
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'limit': value['limit'],
|
|
62
|
+
'offset': value['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.PaginatedResponseDocumentVersionResponsePropertyValidationAttributesMap = {
|
|
66
|
+
total: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
limit: {
|
|
71
|
+
minimum: 1,
|
|
72
|
+
exclusiveMinimum: false,
|
|
73
|
+
},
|
|
74
|
+
offset: {
|
|
75
|
+
minimum: 0,
|
|
76
|
+
exclusiveMinimum: false,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
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
|
+
* Request to update a document (rename, move, and/or change active version).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateDocumentRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateDocumentRequest {
|
|
18
|
+
/**
|
|
19
|
+
* New document name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateDocumentRequest
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* New parent folder PathPart ID (for move)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateDocumentRequest
|
|
28
|
+
*/
|
|
29
|
+
parentId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* New active version ID
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateDocumentRequest
|
|
34
|
+
*/
|
|
35
|
+
activeVersionId?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UpdateDocumentRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUpdateDocumentRequest(value: object): value is UpdateDocumentRequest;
|
|
41
|
+
export declare function UpdateDocumentRequestFromJSON(json: any): UpdateDocumentRequest;
|
|
42
|
+
export declare function UpdateDocumentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDocumentRequest;
|
|
43
|
+
export declare function UpdateDocumentRequestToJSON(json: any): UpdateDocumentRequest;
|
|
44
|
+
export declare function UpdateDocumentRequestToJSONTyped(value?: UpdateDocumentRequest | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
export declare const UpdateDocumentRequestPropertyValidationAttributesMap: {
|
|
46
|
+
[property: string]: {
|
|
47
|
+
maxLength?: number;
|
|
48
|
+
minLength?: number;
|
|
49
|
+
pattern?: string;
|
|
50
|
+
maximum?: number;
|
|
51
|
+
exclusiveMaximum?: boolean;
|
|
52
|
+
minimum?: number;
|
|
53
|
+
exclusiveMinimum?: boolean;
|
|
54
|
+
multipleOf?: number;
|
|
55
|
+
maxItems?: number;
|
|
56
|
+
minItems?: number;
|
|
57
|
+
uniqueItems?: boolean;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.UpdateDocumentRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfUpdateDocumentRequest = instanceOfUpdateDocumentRequest;
|
|
18
|
+
exports.UpdateDocumentRequestFromJSON = UpdateDocumentRequestFromJSON;
|
|
19
|
+
exports.UpdateDocumentRequestFromJSONTyped = UpdateDocumentRequestFromJSONTyped;
|
|
20
|
+
exports.UpdateDocumentRequestToJSON = UpdateDocumentRequestToJSON;
|
|
21
|
+
exports.UpdateDocumentRequestToJSONTyped = UpdateDocumentRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateDocumentRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateDocumentRequest(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function UpdateDocumentRequestFromJSON(json) {
|
|
29
|
+
return UpdateDocumentRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function UpdateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
|
38
|
+
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function UpdateDocumentRequestToJSON(json) {
|
|
42
|
+
return UpdateDocumentRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UpdateDocumentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'parent_id': value['parentId'],
|
|
51
|
+
'active_version_id': value['activeVersionId'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.UpdateDocumentRequestPropertyValidationAttributesMap = {
|
|
55
|
+
name: {
|
|
56
|
+
maxLength: 255,
|
|
57
|
+
minLength: 1,
|
|
58
|
+
},
|
|
59
|
+
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
export * from './CreateDocumentRequest';
|
|
1
2
|
export * from './CreateFolderRequest';
|
|
2
3
|
export * from './CreatePasswordUserRequest';
|
|
3
4
|
export * from './CreateTenantRequest';
|
|
5
|
+
export * from './DocumentOrigin';
|
|
6
|
+
export * from './DocumentResponse';
|
|
7
|
+
export * from './DocumentType';
|
|
8
|
+
export * from './DocumentVersionResponse';
|
|
4
9
|
export * from './EmailSentResponse';
|
|
5
10
|
export * from './EmailVerificationRequest';
|
|
6
11
|
export * from './FolderResponse';
|
|
@@ -11,6 +16,8 @@ export * from './InviteResponse';
|
|
|
11
16
|
export * from './InviteStatus';
|
|
12
17
|
export * from './InviteUserRequest';
|
|
13
18
|
export * from './OAuth2Config';
|
|
19
|
+
export * from './PaginatedResponseDocumentResponse';
|
|
20
|
+
export * from './PaginatedResponseDocumentVersionResponse';
|
|
14
21
|
export * from './PaginatedResponseFolderResponse';
|
|
15
22
|
export * from './PaginatedResponseInviteResponse';
|
|
16
23
|
export * from './PaginatedResponsePathPartResponse';
|
|
@@ -26,6 +33,7 @@ export * from './SignInRequest';
|
|
|
26
33
|
export * from './TenantResponse';
|
|
27
34
|
export * from './TenantUserInTenantResponse';
|
|
28
35
|
export * from './TenantUserRole';
|
|
36
|
+
export * from './UpdateDocumentRequest';
|
|
29
37
|
export * from './UpdateFolderRequest';
|
|
30
38
|
export * from './UpdateTenantRequest';
|
|
31
39
|
export * from './UpdateUserRequest';
|