@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,110 @@
|
|
|
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 { DocumentOrigin } from './DocumentOrigin';
|
|
13
|
+
import type { DocumentType } from './DocumentType';
|
|
14
|
+
import type { DocumentVersionResponse } from './DocumentVersionResponse';
|
|
15
|
+
/**
|
|
16
|
+
* Document response model.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface DocumentResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface DocumentResponse {
|
|
21
|
+
/**
|
|
22
|
+
* Document ID
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof DocumentResponse
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* PathPart ID
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof DocumentResponse
|
|
31
|
+
*/
|
|
32
|
+
pathPartId: string;
|
|
33
|
+
/**
|
|
34
|
+
* Document name
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof DocumentResponse
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
/**
|
|
40
|
+
* Parent PathPart ID
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof DocumentResponse
|
|
43
|
+
*/
|
|
44
|
+
parentId: string;
|
|
45
|
+
/**
|
|
46
|
+
* Type of document
|
|
47
|
+
* @type {DocumentType}
|
|
48
|
+
* @memberof DocumentResponse
|
|
49
|
+
*/
|
|
50
|
+
documentType: DocumentType;
|
|
51
|
+
/**
|
|
52
|
+
* Origin of document
|
|
53
|
+
* @type {DocumentOrigin}
|
|
54
|
+
* @memberof DocumentResponse
|
|
55
|
+
*/
|
|
56
|
+
documentOrigin: DocumentOrigin;
|
|
57
|
+
/**
|
|
58
|
+
* Active version ID
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof DocumentResponse
|
|
61
|
+
*/
|
|
62
|
+
activeVersionId: string;
|
|
63
|
+
/**
|
|
64
|
+
* Active version details
|
|
65
|
+
* @type {DocumentVersionResponse}
|
|
66
|
+
* @memberof DocumentResponse
|
|
67
|
+
*/
|
|
68
|
+
activeVersion: DocumentVersionResponse;
|
|
69
|
+
/**
|
|
70
|
+
* Tenant ID
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof DocumentResponse
|
|
73
|
+
*/
|
|
74
|
+
tenantId: string;
|
|
75
|
+
/**
|
|
76
|
+
* Creation timestamp
|
|
77
|
+
* @type {Date}
|
|
78
|
+
* @memberof DocumentResponse
|
|
79
|
+
*/
|
|
80
|
+
createdAt: Date;
|
|
81
|
+
/**
|
|
82
|
+
* Last update timestamp
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof DocumentResponse
|
|
85
|
+
*/
|
|
86
|
+
updatedAt: Date;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the DocumentResponse interface.
|
|
90
|
+
*/
|
|
91
|
+
export declare function instanceOfDocumentResponse(value: object): value is DocumentResponse;
|
|
92
|
+
export declare function DocumentResponseFromJSON(json: any): DocumentResponse;
|
|
93
|
+
export declare function DocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentResponse;
|
|
94
|
+
export declare function DocumentResponseToJSON(json: any): DocumentResponse;
|
|
95
|
+
export declare function DocumentResponseToJSONTyped(value?: DocumentResponse | null, ignoreDiscriminator?: boolean): any;
|
|
96
|
+
export declare const DocumentResponsePropertyValidationAttributesMap: {
|
|
97
|
+
[property: string]: {
|
|
98
|
+
maxLength?: number;
|
|
99
|
+
minLength?: number;
|
|
100
|
+
pattern?: string;
|
|
101
|
+
maximum?: number;
|
|
102
|
+
exclusiveMaximum?: boolean;
|
|
103
|
+
minimum?: number;
|
|
104
|
+
exclusiveMinimum?: boolean;
|
|
105
|
+
multipleOf?: number;
|
|
106
|
+
maxItems?: number;
|
|
107
|
+
minItems?: number;
|
|
108
|
+
uniqueItems?: boolean;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
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
|
+
import { DocumentOriginFromJSON, DocumentOriginToJSON, } from './DocumentOrigin';
|
|
15
|
+
import { DocumentTypeFromJSON, DocumentTypeToJSON, } from './DocumentType';
|
|
16
|
+
import { DocumentVersionResponseFromJSON, DocumentVersionResponseToJSON, } from './DocumentVersionResponse';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the DocumentResponse interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfDocumentResponse(value) {
|
|
21
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('documentType' in value) || value['documentType'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('documentOrigin' in value) || value['documentOrigin'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('activeVersionId' in value) || value['activeVersionId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('activeVersion' in value) || value['activeVersion'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
export function DocumentResponseFromJSON(json) {
|
|
46
|
+
return DocumentResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': json['id'],
|
|
54
|
+
'pathPartId': json['path_part_id'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'parentId': json['parent_id'],
|
|
57
|
+
'documentType': DocumentTypeFromJSON(json['document_type']),
|
|
58
|
+
'documentOrigin': DocumentOriginFromJSON(json['document_origin']),
|
|
59
|
+
'activeVersionId': json['active_version_id'],
|
|
60
|
+
'activeVersion': DocumentVersionResponseFromJSON(json['active_version']),
|
|
61
|
+
'tenantId': json['tenant_id'],
|
|
62
|
+
'createdAt': (new Date(json['created_at'])),
|
|
63
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export function DocumentResponseToJSON(json) {
|
|
67
|
+
return DocumentResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
export function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'path_part_id': value['pathPartId'],
|
|
76
|
+
'name': value['name'],
|
|
77
|
+
'parent_id': value['parentId'],
|
|
78
|
+
'document_type': DocumentTypeToJSON(value['documentType']),
|
|
79
|
+
'document_origin': DocumentOriginToJSON(value['documentOrigin']),
|
|
80
|
+
'active_version_id': value['activeVersionId'],
|
|
81
|
+
'active_version': DocumentVersionResponseToJSON(value['activeVersion']),
|
|
82
|
+
'tenant_id': value['tenantId'],
|
|
83
|
+
'created_at': value['createdAt'].toISOString(),
|
|
84
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export const DocumentResponsePropertyValidationAttributesMap = {};
|
|
@@ -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,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
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
|
+
* Type of document.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const DocumentType = {
|
|
19
|
+
Pdf: 'PDF',
|
|
20
|
+
Unknown: 'UNKNOWN'
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfDocumentType(value) {
|
|
23
|
+
for (const key in DocumentType) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(DocumentType, key)) {
|
|
25
|
+
if (DocumentType[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
export function DocumentTypeFromJSON(json) {
|
|
33
|
+
return DocumentTypeFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function DocumentTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
export function DocumentTypeToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
export function DocumentTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
@@ -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,72 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
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
|
+
* Check if a given object implements the DocumentVersionResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDocumentVersionResponse(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function DocumentVersionResponseFromJSON(json) {
|
|
37
|
+
return DocumentVersionResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
'pathPartId': json['path_part_id'],
|
|
46
|
+
'version': json['version'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'parentId': json['parent_id'],
|
|
49
|
+
'tenantId': json['tenant_id'],
|
|
50
|
+
'createdAt': (new Date(json['created_at'])),
|
|
51
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function DocumentVersionResponseToJSON(json) {
|
|
55
|
+
return DocumentVersionResponseToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'path_part_id': value['pathPartId'],
|
|
64
|
+
'version': value['version'],
|
|
65
|
+
'name': value['name'],
|
|
66
|
+
'parent_id': value['parentId'],
|
|
67
|
+
'tenant_id': value['tenantId'],
|
|
68
|
+
'created_at': value['createdAt'].toISOString(),
|
|
69
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
export const 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,70 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
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
|
+
import { DocumentResponseFromJSON, DocumentResponseToJSON, } from './DocumentResponse';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PaginatedResponseDocumentResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPaginatedResponseDocumentResponse(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function PaginatedResponseDocumentResponseFromJSON(json) {
|
|
30
|
+
return PaginatedResponseDocumentResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function PaginatedResponseDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'items': (json['items'].map(DocumentResponseFromJSON)),
|
|
38
|
+
'total': json['total'],
|
|
39
|
+
'limit': json['limit'],
|
|
40
|
+
'offset': json['offset'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function PaginatedResponseDocumentResponseToJSON(json) {
|
|
44
|
+
return PaginatedResponseDocumentResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function PaginatedResponseDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'items': (value['items'].map(DocumentResponseToJSON)),
|
|
52
|
+
'total': value['total'],
|
|
53
|
+
'limit': value['limit'],
|
|
54
|
+
'offset': value['offset'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export const PaginatedResponseDocumentResponsePropertyValidationAttributesMap = {
|
|
58
|
+
total: {
|
|
59
|
+
minimum: 0,
|
|
60
|
+
exclusiveMinimum: false,
|
|
61
|
+
},
|
|
62
|
+
limit: {
|
|
63
|
+
minimum: 1,
|
|
64
|
+
exclusiveMinimum: false,
|
|
65
|
+
},
|
|
66
|
+
offset: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
};
|
|
@@ -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
|
+
};
|