@knowledge-stack/ksapi 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/dist/apis/DocumentsApi.d.ts +179 -0
  4. package/dist/apis/DocumentsApi.js +206 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/DocumentsApi.d.ts +179 -0
  8. package/dist/esm/apis/DocumentsApi.js +202 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/CreateDocumentRequest.d.ts +67 -0
  12. package/dist/esm/models/CreateDocumentRequest.js +63 -0
  13. package/dist/esm/models/DocumentOrigin.d.ts +25 -0
  14. package/dist/esm/models/DocumentOrigin.js +43 -0
  15. package/dist/esm/models/DocumentResponse.d.ts +110 -0
  16. package/dist/esm/models/DocumentResponse.js +87 -0
  17. package/dist/esm/models/DocumentType.d.ts +25 -0
  18. package/dist/esm/models/DocumentType.js +43 -0
  19. package/dist/esm/models/DocumentVersionResponse.d.ts +92 -0
  20. package/dist/esm/models/DocumentVersionResponse.js +72 -0
  21. package/dist/esm/models/PaginatedResponseDocumentResponse.d.ts +66 -0
  22. package/dist/esm/models/PaginatedResponseDocumentResponse.js +70 -0
  23. package/dist/esm/models/UpdateDocumentRequest.d.ts +59 -0
  24. package/dist/esm/models/UpdateDocumentRequest.js +51 -0
  25. package/dist/esm/models/index.d.ts +7 -0
  26. package/dist/esm/models/index.js +7 -0
  27. package/dist/models/CreateDocumentRequest.d.ts +67 -0
  28. package/dist/models/CreateDocumentRequest.js +71 -0
  29. package/dist/models/DocumentOrigin.d.ts +25 -0
  30. package/dist/models/DocumentOrigin.js +51 -0
  31. package/dist/models/DocumentResponse.d.ts +110 -0
  32. package/dist/models/DocumentResponse.js +95 -0
  33. package/dist/models/DocumentType.d.ts +25 -0
  34. package/dist/models/DocumentType.js +51 -0
  35. package/dist/models/DocumentVersionResponse.d.ts +92 -0
  36. package/dist/models/DocumentVersionResponse.js +80 -0
  37. package/dist/models/PaginatedResponseDocumentResponse.d.ts +66 -0
  38. package/dist/models/PaginatedResponseDocumentResponse.js +78 -0
  39. package/dist/models/UpdateDocumentRequest.d.ts +59 -0
  40. package/dist/models/UpdateDocumentRequest.js +59 -0
  41. package/dist/models/index.d.ts +7 -0
  42. package/dist/models/index.js +7 -0
  43. package/package.json +1 -1
  44. package/src/apis/DocumentsApi.ts +386 -0
  45. package/src/apis/index.ts +1 -0
  46. package/src/models/CreateDocumentRequest.ts +131 -0
  47. package/src/models/DocumentOrigin.ts +53 -0
  48. package/src/models/DocumentResponse.ts +197 -0
  49. package/src/models/DocumentType.ts +53 -0
  50. package/src/models/DocumentVersionResponse.ts +149 -0
  51. package/src/models/PaginatedResponseDocumentResponse.ts +130 -0
  52. package/src/models/UpdateDocumentRequest.ts +102 -0
  53. package/src/models/index.ts +7 -0
@@ -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.DocumentOrigin = void 0;
17
+ exports.instanceOfDocumentOrigin = instanceOfDocumentOrigin;
18
+ exports.DocumentOriginFromJSON = DocumentOriginFromJSON;
19
+ exports.DocumentOriginFromJSONTyped = DocumentOriginFromJSONTyped;
20
+ exports.DocumentOriginToJSON = DocumentOriginToJSON;
21
+ exports.DocumentOriginToJSONTyped = DocumentOriginToJSONTyped;
22
+ /**
23
+ * Origin of document - source/purpose (all origins are first-class).
24
+ * @export
25
+ */
26
+ exports.DocumentOrigin = {
27
+ Source: 'SOURCE',
28
+ Generated: 'GENERATED'
29
+ };
30
+ function instanceOfDocumentOrigin(value) {
31
+ for (const key in exports.DocumentOrigin) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.DocumentOrigin, key)) {
33
+ if (exports.DocumentOrigin[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function DocumentOriginFromJSON(json) {
41
+ return DocumentOriginFromJSONTyped(json, false);
42
+ }
43
+ function DocumentOriginFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function DocumentOriginToJSON(value) {
47
+ return value;
48
+ }
49
+ function DocumentOriginToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -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,95 @@
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.DocumentResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfDocumentResponse = instanceOfDocumentResponse;
18
+ exports.DocumentResponseFromJSON = DocumentResponseFromJSON;
19
+ exports.DocumentResponseFromJSONTyped = DocumentResponseFromJSONTyped;
20
+ exports.DocumentResponseToJSON = DocumentResponseToJSON;
21
+ exports.DocumentResponseToJSONTyped = DocumentResponseToJSONTyped;
22
+ const DocumentOrigin_1 = require("./DocumentOrigin");
23
+ const DocumentType_1 = require("./DocumentType");
24
+ const DocumentVersionResponse_1 = require("./DocumentVersionResponse");
25
+ /**
26
+ * Check if a given object implements the DocumentResponse interface.
27
+ */
28
+ function instanceOfDocumentResponse(value) {
29
+ if (!('id' in value) || value['id'] === undefined)
30
+ return false;
31
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
32
+ return false;
33
+ if (!('name' in value) || value['name'] === undefined)
34
+ return false;
35
+ if (!('parentId' in value) || value['parentId'] === undefined)
36
+ return false;
37
+ if (!('documentType' in value) || value['documentType'] === undefined)
38
+ return false;
39
+ if (!('documentOrigin' in value) || value['documentOrigin'] === undefined)
40
+ return false;
41
+ if (!('activeVersionId' in value) || value['activeVersionId'] === undefined)
42
+ return false;
43
+ if (!('activeVersion' in value) || value['activeVersion'] === undefined)
44
+ return false;
45
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
46
+ return false;
47
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
48
+ return false;
49
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ function DocumentResponseFromJSON(json) {
54
+ return DocumentResponseFromJSONTyped(json, false);
55
+ }
56
+ function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'id': json['id'],
62
+ 'pathPartId': json['path_part_id'],
63
+ 'name': json['name'],
64
+ 'parentId': json['parent_id'],
65
+ 'documentType': (0, DocumentType_1.DocumentTypeFromJSON)(json['document_type']),
66
+ 'documentOrigin': (0, DocumentOrigin_1.DocumentOriginFromJSON)(json['document_origin']),
67
+ 'activeVersionId': json['active_version_id'],
68
+ 'activeVersion': (0, DocumentVersionResponse_1.DocumentVersionResponseFromJSON)(json['active_version']),
69
+ 'tenantId': json['tenant_id'],
70
+ 'createdAt': (new Date(json['created_at'])),
71
+ 'updatedAt': (new Date(json['updated_at'])),
72
+ };
73
+ }
74
+ function DocumentResponseToJSON(json) {
75
+ return DocumentResponseToJSONTyped(json, false);
76
+ }
77
+ function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+ return {
82
+ 'id': value['id'],
83
+ 'path_part_id': value['pathPartId'],
84
+ 'name': value['name'],
85
+ 'parent_id': value['parentId'],
86
+ 'document_type': (0, DocumentType_1.DocumentTypeToJSON)(value['documentType']),
87
+ 'document_origin': (0, DocumentOrigin_1.DocumentOriginToJSON)(value['documentOrigin']),
88
+ 'active_version_id': value['activeVersionId'],
89
+ 'active_version': (0, DocumentVersionResponse_1.DocumentVersionResponseToJSON)(value['activeVersion']),
90
+ 'tenant_id': value['tenantId'],
91
+ 'created_at': value['createdAt'].toISOString(),
92
+ 'updated_at': value['updatedAt'].toISOString(),
93
+ };
94
+ }
95
+ exports.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,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 future 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
+ };