@knowledge-stack/ksapi 1.5.0 → 1.7.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 (51) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/dist/apis/DocumentVersionsApi.d.ts +146 -0
  4. package/dist/apis/DocumentVersionsApi.js +168 -0
  5. package/dist/apis/PathPartsApi.d.ts +30 -1
  6. package/dist/apis/PathPartsApi.js +32 -0
  7. package/dist/apis/SectionsApi.d.ts +144 -0
  8. package/dist/apis/SectionsApi.js +166 -0
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +2 -0
  11. package/dist/esm/apis/DocumentVersionsApi.d.ts +146 -0
  12. package/dist/esm/apis/DocumentVersionsApi.js +164 -0
  13. package/dist/esm/apis/PathPartsApi.d.ts +30 -1
  14. package/dist/esm/apis/PathPartsApi.js +33 -1
  15. package/dist/esm/apis/SectionsApi.d.ts +144 -0
  16. package/dist/esm/apis/SectionsApi.js +162 -0
  17. package/dist/esm/apis/index.d.ts +2 -0
  18. package/dist/esm/apis/index.js +2 -0
  19. package/dist/esm/models/CreateSectionRequest.d.ts +65 -0
  20. package/dist/esm/models/CreateSectionRequest.js +57 -0
  21. package/dist/esm/models/DocumentVersionResponse.d.ts +1 -1
  22. package/dist/esm/models/PaginatedResponseDocumentVersionResponse.d.ts +66 -0
  23. package/dist/esm/models/PaginatedResponseDocumentVersionResponse.js +70 -0
  24. package/dist/esm/models/SectionResponse.d.ts +101 -0
  25. package/dist/esm/models/SectionResponse.js +74 -0
  26. package/dist/esm/models/UpdateSectionRequest.d.ts +65 -0
  27. package/dist/esm/models/UpdateSectionRequest.js +53 -0
  28. package/dist/esm/models/index.d.ts +4 -0
  29. package/dist/esm/models/index.js +4 -0
  30. package/dist/models/CreateSectionRequest.d.ts +65 -0
  31. package/dist/models/CreateSectionRequest.js +65 -0
  32. package/dist/models/DocumentVersionResponse.d.ts +1 -1
  33. package/dist/models/PaginatedResponseDocumentVersionResponse.d.ts +66 -0
  34. package/dist/models/PaginatedResponseDocumentVersionResponse.js +78 -0
  35. package/dist/models/SectionResponse.d.ts +101 -0
  36. package/dist/models/SectionResponse.js +82 -0
  37. package/dist/models/UpdateSectionRequest.d.ts +65 -0
  38. package/dist/models/UpdateSectionRequest.js +61 -0
  39. package/dist/models/index.d.ts +4 -0
  40. package/dist/models/index.js +4 -0
  41. package/package.json +1 -1
  42. package/src/apis/DocumentVersionsApi.ts +303 -0
  43. package/src/apis/PathPartsApi.ts +64 -0
  44. package/src/apis/SectionsApi.ts +305 -0
  45. package/src/apis/index.ts +2 -0
  46. package/src/models/CreateSectionRequest.ts +112 -0
  47. package/src/models/DocumentVersionResponse.ts +1 -1
  48. package/src/models/PaginatedResponseDocumentVersionResponse.ts +130 -0
  49. package/src/models/SectionResponse.ts +161 -0
  50. package/src/models/UpdateSectionRequest.ts +110 -0
  51. package/src/models/index.ts +4 -0
@@ -0,0 +1,101 @@
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
+ * Section response model.
14
+ * @export
15
+ * @interface SectionResponse
16
+ */
17
+ export interface SectionResponse {
18
+ /**
19
+ * Section ID
20
+ * @type {string}
21
+ * @memberof SectionResponse
22
+ */
23
+ id: string;
24
+ /**
25
+ * PathPart ID
26
+ * @type {string}
27
+ * @memberof SectionResponse
28
+ */
29
+ pathPartId: string;
30
+ /**
31
+ * Section name
32
+ * @type {string}
33
+ * @memberof SectionResponse
34
+ */
35
+ name: string;
36
+ /**
37
+ * Page number in source document
38
+ * @type {number}
39
+ * @memberof SectionResponse
40
+ */
41
+ pageNumber?: number;
42
+ /**
43
+ * Parent PathPart ID
44
+ * @type {string}
45
+ * @memberof SectionResponse
46
+ */
47
+ parentId: string;
48
+ /**
49
+ * Previous sibling PathPart ID
50
+ * @type {string}
51
+ * @memberof SectionResponse
52
+ */
53
+ prevSiblingPathId?: string;
54
+ /**
55
+ * Next sibling PathPart ID
56
+ * @type {string}
57
+ * @memberof SectionResponse
58
+ */
59
+ nextSiblingId?: string;
60
+ /**
61
+ * Tenant ID
62
+ * @type {string}
63
+ * @memberof SectionResponse
64
+ */
65
+ tenantId: string;
66
+ /**
67
+ * Creation timestamp
68
+ * @type {Date}
69
+ * @memberof SectionResponse
70
+ */
71
+ createdAt: Date;
72
+ /**
73
+ * Last update timestamp
74
+ * @type {Date}
75
+ * @memberof SectionResponse
76
+ */
77
+ updatedAt: Date;
78
+ }
79
+ /**
80
+ * Check if a given object implements the SectionResponse interface.
81
+ */
82
+ export declare function instanceOfSectionResponse(value: object): value is SectionResponse;
83
+ export declare function SectionResponseFromJSON(json: any): SectionResponse;
84
+ export declare function SectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SectionResponse;
85
+ export declare function SectionResponseToJSON(json: any): SectionResponse;
86
+ export declare function SectionResponseToJSONTyped(value?: SectionResponse | null, ignoreDiscriminator?: boolean): any;
87
+ export declare const SectionResponsePropertyValidationAttributesMap: {
88
+ [property: string]: {
89
+ maxLength?: number;
90
+ minLength?: number;
91
+ pattern?: string;
92
+ maximum?: number;
93
+ exclusiveMaximum?: boolean;
94
+ minimum?: number;
95
+ exclusiveMinimum?: boolean;
96
+ multipleOf?: number;
97
+ maxItems?: number;
98
+ minItems?: number;
99
+ uniqueItems?: boolean;
100
+ };
101
+ };
@@ -0,0 +1,74 @@
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 SectionResponse interface.
16
+ */
17
+ export function instanceOfSectionResponse(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 (!('name' in value) || value['name'] === undefined)
23
+ return false;
24
+ if (!('parentId' in value) || value['parentId'] === undefined)
25
+ return false;
26
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
27
+ return false;
28
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
29
+ return false;
30
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function SectionResponseFromJSON(json) {
35
+ return SectionResponseFromJSONTyped(json, false);
36
+ }
37
+ export function SectionResponseFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'],
43
+ 'pathPartId': json['path_part_id'],
44
+ 'name': json['name'],
45
+ 'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
46
+ 'parentId': json['parent_id'],
47
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
48
+ 'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_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 SectionResponseToJSON(json) {
55
+ return SectionResponseToJSONTyped(json, false);
56
+ }
57
+ export function SectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'id': value['id'],
63
+ 'path_part_id': value['pathPartId'],
64
+ 'name': value['name'],
65
+ 'page_number': value['pageNumber'],
66
+ 'parent_id': value['parentId'],
67
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
68
+ 'next_sibling_id': value['nextSiblingId'],
69
+ 'tenant_id': value['tenantId'],
70
+ 'created_at': value['createdAt'].toISOString(),
71
+ 'updated_at': value['updatedAt'].toISOString(),
72
+ };
73
+ }
74
+ export const SectionResponsePropertyValidationAttributesMap = {};
@@ -0,0 +1,65 @@
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 section.
14
+ * @export
15
+ * @interface UpdateSectionRequest
16
+ */
17
+ export interface UpdateSectionRequest {
18
+ /**
19
+ * New section name (can contain any characters)
20
+ * @type {string}
21
+ * @memberof UpdateSectionRequest
22
+ */
23
+ name?: string;
24
+ /**
25
+ * New page number (must be > 0)
26
+ * @type {number}
27
+ * @memberof UpdateSectionRequest
28
+ */
29
+ pageNumber?: number;
30
+ /**
31
+ * Move after this sibling PathPart ID
32
+ * @type {string}
33
+ * @memberof UpdateSectionRequest
34
+ */
35
+ prevSiblingPathId?: string;
36
+ /**
37
+ * Set to true to move to head of sibling list. This is needed since prev_sibling_path_id = None means no update
38
+ * @type {boolean}
39
+ * @memberof UpdateSectionRequest
40
+ */
41
+ moveToHead?: boolean;
42
+ }
43
+ /**
44
+ * Check if a given object implements the UpdateSectionRequest interface.
45
+ */
46
+ export declare function instanceOfUpdateSectionRequest(value: object): value is UpdateSectionRequest;
47
+ export declare function UpdateSectionRequestFromJSON(json: any): UpdateSectionRequest;
48
+ export declare function UpdateSectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSectionRequest;
49
+ export declare function UpdateSectionRequestToJSON(json: any): UpdateSectionRequest;
50
+ export declare function UpdateSectionRequestToJSONTyped(value?: UpdateSectionRequest | null, ignoreDiscriminator?: boolean): any;
51
+ export declare const UpdateSectionRequestPropertyValidationAttributesMap: {
52
+ [property: string]: {
53
+ maxLength?: number;
54
+ minLength?: number;
55
+ pattern?: string;
56
+ maximum?: number;
57
+ exclusiveMaximum?: boolean;
58
+ minimum?: number;
59
+ exclusiveMinimum?: boolean;
60
+ multipleOf?: number;
61
+ maxItems?: number;
62
+ minItems?: number;
63
+ uniqueItems?: boolean;
64
+ };
65
+ };
@@ -0,0 +1,53 @@
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 UpdateSectionRequest interface.
16
+ */
17
+ export function instanceOfUpdateSectionRequest(value) {
18
+ return true;
19
+ }
20
+ export function UpdateSectionRequestFromJSON(json) {
21
+ return UpdateSectionRequestFromJSONTyped(json, false);
22
+ }
23
+ export function UpdateSectionRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'name': json['name'] == null ? undefined : json['name'],
29
+ 'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
30
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
31
+ 'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
32
+ };
33
+ }
34
+ export function UpdateSectionRequestToJSON(json) {
35
+ return UpdateSectionRequestToJSONTyped(json, false);
36
+ }
37
+ export function UpdateSectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'name': value['name'],
43
+ 'page_number': value['pageNumber'],
44
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
45
+ 'move_to_head': value['moveToHead'],
46
+ };
47
+ }
48
+ export const UpdateSectionRequestPropertyValidationAttributesMap = {
49
+ name: {
50
+ maxLength: 255,
51
+ minLength: 1,
52
+ },
53
+ };
@@ -1,6 +1,7 @@
1
1
  export * from './CreateDocumentRequest';
2
2
  export * from './CreateFolderRequest';
3
3
  export * from './CreatePasswordUserRequest';
4
+ export * from './CreateSectionRequest';
4
5
  export * from './CreateTenantRequest';
5
6
  export * from './DocumentOrigin';
6
7
  export * from './DocumentResponse';
@@ -17,6 +18,7 @@ export * from './InviteStatus';
17
18
  export * from './InviteUserRequest';
18
19
  export * from './OAuth2Config';
19
20
  export * from './PaginatedResponseDocumentResponse';
21
+ export * from './PaginatedResponseDocumentVersionResponse';
20
22
  export * from './PaginatedResponseFolderResponse';
21
23
  export * from './PaginatedResponseInviteResponse';
22
24
  export * from './PaginatedResponsePathPartResponse';
@@ -28,12 +30,14 @@ export * from './PasswordResetWithTokenRequest';
28
30
  export * from './PathOrder';
29
31
  export * from './PathPartResponse';
30
32
  export * from './RootResponse';
33
+ export * from './SectionResponse';
31
34
  export * from './SignInRequest';
32
35
  export * from './TenantResponse';
33
36
  export * from './TenantUserInTenantResponse';
34
37
  export * from './TenantUserRole';
35
38
  export * from './UpdateDocumentRequest';
36
39
  export * from './UpdateFolderRequest';
40
+ export * from './UpdateSectionRequest';
37
41
  export * from './UpdateTenantRequest';
38
42
  export * from './UpdateUserRequest';
39
43
  export * from './UserResponse';
@@ -3,6 +3,7 @@
3
3
  export * from './CreateDocumentRequest';
4
4
  export * from './CreateFolderRequest';
5
5
  export * from './CreatePasswordUserRequest';
6
+ export * from './CreateSectionRequest';
6
7
  export * from './CreateTenantRequest';
7
8
  export * from './DocumentOrigin';
8
9
  export * from './DocumentResponse';
@@ -19,6 +20,7 @@ export * from './InviteStatus';
19
20
  export * from './InviteUserRequest';
20
21
  export * from './OAuth2Config';
21
22
  export * from './PaginatedResponseDocumentResponse';
23
+ export * from './PaginatedResponseDocumentVersionResponse';
22
24
  export * from './PaginatedResponseFolderResponse';
23
25
  export * from './PaginatedResponseInviteResponse';
24
26
  export * from './PaginatedResponsePathPartResponse';
@@ -30,12 +32,14 @@ export * from './PasswordResetWithTokenRequest';
30
32
  export * from './PathOrder';
31
33
  export * from './PathPartResponse';
32
34
  export * from './RootResponse';
35
+ export * from './SectionResponse';
33
36
  export * from './SignInRequest';
34
37
  export * from './TenantResponse';
35
38
  export * from './TenantUserInTenantResponse';
36
39
  export * from './TenantUserRole';
37
40
  export * from './UpdateDocumentRequest';
38
41
  export * from './UpdateFolderRequest';
42
+ export * from './UpdateSectionRequest';
39
43
  export * from './UpdateTenantRequest';
40
44
  export * from './UpdateUserRequest';
41
45
  export * from './UserResponse';
@@ -0,0 +1,65 @@
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 create a new section.
14
+ * @export
15
+ * @interface CreateSectionRequest
16
+ */
17
+ export interface CreateSectionRequest {
18
+ /**
19
+ * Section name (can contain any characters)
20
+ * @type {string}
21
+ * @memberof CreateSectionRequest
22
+ */
23
+ name: string;
24
+ /**
25
+ * Parent PathPart ID (must be DOCUMENT_VERSION or SECTION)
26
+ * @type {string}
27
+ * @memberof CreateSectionRequest
28
+ */
29
+ parentPathId: string;
30
+ /**
31
+ * Page number in source document (must be > 0)
32
+ * @type {number}
33
+ * @memberof CreateSectionRequest
34
+ */
35
+ pageNumber?: number;
36
+ /**
37
+ * PathPart ID to insert after (null = append to tail)
38
+ * @type {string}
39
+ * @memberof CreateSectionRequest
40
+ */
41
+ prevSiblingPathId?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the CreateSectionRequest interface.
45
+ */
46
+ export declare function instanceOfCreateSectionRequest(value: object): value is CreateSectionRequest;
47
+ export declare function CreateSectionRequestFromJSON(json: any): CreateSectionRequest;
48
+ export declare function CreateSectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSectionRequest;
49
+ export declare function CreateSectionRequestToJSON(json: any): CreateSectionRequest;
50
+ export declare function CreateSectionRequestToJSONTyped(value?: CreateSectionRequest | null, ignoreDiscriminator?: boolean): any;
51
+ export declare const CreateSectionRequestPropertyValidationAttributesMap: {
52
+ [property: string]: {
53
+ maxLength?: number;
54
+ minLength?: number;
55
+ pattern?: string;
56
+ maximum?: number;
57
+ exclusiveMaximum?: boolean;
58
+ minimum?: number;
59
+ exclusiveMinimum?: boolean;
60
+ multipleOf?: number;
61
+ maxItems?: number;
62
+ minItems?: number;
63
+ uniqueItems?: boolean;
64
+ };
65
+ };
@@ -0,0 +1,65 @@
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.CreateSectionRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfCreateSectionRequest = instanceOfCreateSectionRequest;
18
+ exports.CreateSectionRequestFromJSON = CreateSectionRequestFromJSON;
19
+ exports.CreateSectionRequestFromJSONTyped = CreateSectionRequestFromJSONTyped;
20
+ exports.CreateSectionRequestToJSON = CreateSectionRequestToJSON;
21
+ exports.CreateSectionRequestToJSONTyped = CreateSectionRequestToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the CreateSectionRequest interface.
24
+ */
25
+ function instanceOfCreateSectionRequest(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('parentPathId' in value) || value['parentPathId'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function CreateSectionRequestFromJSON(json) {
33
+ return CreateSectionRequestFromJSONTyped(json, false);
34
+ }
35
+ function CreateSectionRequestFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'name': json['name'],
41
+ 'parentPathId': json['parent_path_id'],
42
+ 'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
43
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
44
+ };
45
+ }
46
+ function CreateSectionRequestToJSON(json) {
47
+ return CreateSectionRequestToJSONTyped(json, false);
48
+ }
49
+ function CreateSectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'name': value['name'],
55
+ 'parent_path_id': value['parentPathId'],
56
+ 'page_number': value['pageNumber'],
57
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
58
+ };
59
+ }
60
+ exports.CreateSectionRequestPropertyValidationAttributesMap = {
61
+ name: {
62
+ maxLength: 255,
63
+ minLength: 1,
64
+ },
65
+ };
@@ -13,7 +13,7 @@
13
13
  * DocumentVersion response model.
14
14
  *
15
15
  * Shared schema for DocumentVersion responses, used by Document endpoints
16
- * and future DocumentVersion endpoints.
16
+ * and DocumentVersion endpoints.
17
17
  * @export
18
18
  * @interface DocumentVersionResponse
19
19
  */
@@ -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
+ };