@knowledge-stack/ksapi 1.6.0 → 1.8.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 +14 -0
- package/README.md +2 -2
- package/dist/apis/ChunksApi.d.ts +175 -0
- package/dist/apis/ChunksApi.js +203 -0
- package/dist/apis/PathPartsApi.d.ts +30 -1
- package/dist/apis/PathPartsApi.js +32 -0
- package/dist/apis/SectionsApi.d.ts +144 -0
- package/dist/apis/SectionsApi.js +166 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/ChunksApi.d.ts +175 -0
- package/dist/esm/apis/ChunksApi.js +199 -0
- package/dist/esm/apis/PathPartsApi.d.ts +30 -1
- package/dist/esm/apis/PathPartsApi.js +33 -1
- package/dist/esm/apis/SectionsApi.d.ts +144 -0
- package/dist/esm/apis/SectionsApi.js +162 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/ChunkMetadataInput.d.ts +48 -0
- package/dist/esm/models/ChunkMetadataInput.js +43 -0
- package/dist/esm/models/ChunkMetadataOutput.d.ts +48 -0
- package/dist/esm/models/ChunkMetadataOutput.js +43 -0
- package/dist/esm/models/ChunkResponse.d.ts +115 -0
- package/dist/esm/models/ChunkResponse.js +86 -0
- package/dist/esm/models/ChunkType.d.ts +27 -0
- package/dist/esm/models/ChunkType.js +45 -0
- package/dist/esm/models/CreateChunkRequest.d.ts +73 -0
- package/dist/esm/models/CreateChunkRequest.js +64 -0
- package/dist/esm/models/CreateSectionRequest.d.ts +65 -0
- package/dist/esm/models/CreateSectionRequest.js +57 -0
- package/dist/esm/models/PasswordResetWithTokenRequest.d.ts +2 -8
- package/dist/esm/models/PasswordResetWithTokenRequest.js +3 -7
- package/dist/esm/models/Polygon.d.ts +65 -0
- package/dist/esm/models/Polygon.js +56 -0
- package/dist/esm/models/PolygonReference.d.ts +54 -0
- package/dist/esm/models/PolygonReference.js +49 -0
- package/dist/esm/models/SectionResponse.d.ts +101 -0
- package/dist/esm/models/SectionResponse.js +74 -0
- package/dist/esm/models/UpdateChunkContentRequest.d.ts +54 -0
- package/dist/esm/models/UpdateChunkContentRequest.js +51 -0
- package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +48 -0
- package/dist/esm/models/UpdateChunkMetadataRequest.js +45 -0
- package/dist/esm/models/UpdateSectionRequest.d.ts +65 -0
- package/dist/esm/models/UpdateSectionRequest.js +53 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/ChunkMetadataInput.d.ts +48 -0
- package/dist/models/ChunkMetadataInput.js +51 -0
- package/dist/models/ChunkMetadataOutput.d.ts +48 -0
- package/dist/models/ChunkMetadataOutput.js +51 -0
- package/dist/models/ChunkResponse.d.ts +115 -0
- package/dist/models/ChunkResponse.js +94 -0
- package/dist/models/ChunkType.d.ts +27 -0
- package/dist/models/ChunkType.js +53 -0
- package/dist/models/CreateChunkRequest.d.ts +73 -0
- package/dist/models/CreateChunkRequest.js +72 -0
- package/dist/models/CreateSectionRequest.d.ts +65 -0
- package/dist/models/CreateSectionRequest.js +65 -0
- package/dist/models/PasswordResetWithTokenRequest.d.ts +2 -8
- package/dist/models/PasswordResetWithTokenRequest.js +3 -7
- package/dist/models/Polygon.d.ts +65 -0
- package/dist/models/Polygon.js +64 -0
- package/dist/models/PolygonReference.d.ts +54 -0
- package/dist/models/PolygonReference.js +57 -0
- package/dist/models/SectionResponse.d.ts +101 -0
- package/dist/models/SectionResponse.js +82 -0
- package/dist/models/UpdateChunkContentRequest.d.ts +54 -0
- package/dist/models/UpdateChunkContentRequest.js +59 -0
- package/dist/models/UpdateChunkMetadataRequest.d.ts +48 -0
- package/dist/models/UpdateChunkMetadataRequest.js +53 -0
- package/dist/models/UpdateSectionRequest.d.ts +65 -0
- package/dist/models/UpdateSectionRequest.js +61 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +1 -1
- package/src/apis/ChunksApi.ts +381 -0
- package/src/apis/PathPartsApi.ts +64 -0
- package/src/apis/SectionsApi.ts +305 -0
- package/src/apis/index.ts +2 -0
- package/src/models/ChunkMetadataInput.ts +90 -0
- package/src/models/ChunkMetadataOutput.ts +90 -0
- package/src/models/ChunkResponse.ts +197 -0
- package/src/models/ChunkType.ts +55 -0
- package/src/models/CreateChunkRequest.ts +138 -0
- package/src/models/CreateSectionRequest.ts +112 -0
- package/src/models/PasswordResetWithTokenRequest.ts +5 -14
- package/src/models/Polygon.ts +110 -0
- package/src/models/PolygonReference.ts +100 -0
- package/src/models/SectionResponse.ts +161 -0
- package/src/models/UpdateChunkContentRequest.ts +104 -0
- package/src/models/UpdateChunkMetadataRequest.ts +91 -0
- package/src/models/UpdateSectionRequest.ts +110 -0
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Section response model.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SectionResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface SectionResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Section ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SectionResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* PathPart ID
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SectionResponse
|
|
32
|
+
*/
|
|
33
|
+
pathPartId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Section name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SectionResponse
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Page number in source document
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof SectionResponse
|
|
44
|
+
*/
|
|
45
|
+
pageNumber?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Parent PathPart ID
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SectionResponse
|
|
50
|
+
*/
|
|
51
|
+
parentId: string;
|
|
52
|
+
/**
|
|
53
|
+
* Previous sibling PathPart ID
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof SectionResponse
|
|
56
|
+
*/
|
|
57
|
+
prevSiblingPathId?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Next sibling PathPart ID
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof SectionResponse
|
|
62
|
+
*/
|
|
63
|
+
nextSiblingId?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Tenant ID
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof SectionResponse
|
|
68
|
+
*/
|
|
69
|
+
tenantId: string;
|
|
70
|
+
/**
|
|
71
|
+
* Creation timestamp
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof SectionResponse
|
|
74
|
+
*/
|
|
75
|
+
createdAt: Date;
|
|
76
|
+
/**
|
|
77
|
+
* Last update timestamp
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof SectionResponse
|
|
80
|
+
*/
|
|
81
|
+
updatedAt: Date;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the SectionResponse interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfSectionResponse(value: object): value is SectionResponse {
|
|
88
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
89
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
90
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
91
|
+
if (!('parentId' in value) || value['parentId'] === undefined) return false;
|
|
92
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
93
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
94
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function SectionResponseFromJSON(json: any): SectionResponse {
|
|
99
|
+
return SectionResponseFromJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function SectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SectionResponse {
|
|
103
|
+
if (json == null) {
|
|
104
|
+
return json;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'id': json['id'],
|
|
109
|
+
'pathPartId': json['path_part_id'],
|
|
110
|
+
'name': json['name'],
|
|
111
|
+
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
112
|
+
'parentId': json['parent_id'],
|
|
113
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
114
|
+
'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
|
|
115
|
+
'tenantId': json['tenant_id'],
|
|
116
|
+
'createdAt': (new Date(json['created_at'])),
|
|
117
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function SectionResponseToJSON(json: any): SectionResponse {
|
|
122
|
+
return SectionResponseToJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function SectionResponseToJSONTyped(value?: SectionResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
126
|
+
if (value == null) {
|
|
127
|
+
return value;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'id': value['id'],
|
|
133
|
+
'path_part_id': value['pathPartId'],
|
|
134
|
+
'name': value['name'],
|
|
135
|
+
'page_number': value['pageNumber'],
|
|
136
|
+
'parent_id': value['parentId'],
|
|
137
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
138
|
+
'next_sibling_id': value['nextSiblingId'],
|
|
139
|
+
'tenant_id': value['tenantId'],
|
|
140
|
+
'created_at': value['createdAt'].toISOString(),
|
|
141
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export const SectionResponsePropertyValidationAttributesMap: {
|
|
146
|
+
[property: string]: {
|
|
147
|
+
maxLength?: number,
|
|
148
|
+
minLength?: number,
|
|
149
|
+
pattern?: string,
|
|
150
|
+
maximum?: number,
|
|
151
|
+
exclusiveMaximum?: boolean,
|
|
152
|
+
minimum?: number,
|
|
153
|
+
exclusiveMinimum?: boolean,
|
|
154
|
+
multipleOf?: number,
|
|
155
|
+
maxItems?: number,
|
|
156
|
+
minItems?: number,
|
|
157
|
+
uniqueItems?: boolean
|
|
158
|
+
}
|
|
159
|
+
} = {
|
|
160
|
+
}
|
|
161
|
+
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ChunkType } from './ChunkType';
|
|
17
|
+
import {
|
|
18
|
+
ChunkTypeFromJSON,
|
|
19
|
+
ChunkTypeFromJSONTyped,
|
|
20
|
+
ChunkTypeToJSON,
|
|
21
|
+
ChunkTypeToJSONTyped,
|
|
22
|
+
} from './ChunkType';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Request to update chunk content (creates new content row).
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateChunkContentRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateChunkContentRequest {
|
|
30
|
+
/**
|
|
31
|
+
* New chunk text content
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateChunkContentRequest
|
|
34
|
+
*/
|
|
35
|
+
content: string;
|
|
36
|
+
/**
|
|
37
|
+
* New chunk type (null = keep existing type)
|
|
38
|
+
* @type {ChunkType}
|
|
39
|
+
* @memberof UpdateChunkContentRequest
|
|
40
|
+
*/
|
|
41
|
+
chunkType?: ChunkType;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the UpdateChunkContentRequest interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfUpdateChunkContentRequest(value: object): value is UpdateChunkContentRequest {
|
|
50
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function UpdateChunkContentRequestFromJSON(json: any): UpdateChunkContentRequest {
|
|
55
|
+
return UpdateChunkContentRequestFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function UpdateChunkContentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateChunkContentRequest {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'content': json['content'],
|
|
65
|
+
'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function UpdateChunkContentRequestToJSON(json: any): UpdateChunkContentRequest {
|
|
70
|
+
return UpdateChunkContentRequestToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function UpdateChunkContentRequestToJSONTyped(value?: UpdateChunkContentRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'content': value['content'],
|
|
81
|
+
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const UpdateChunkContentRequestPropertyValidationAttributesMap: {
|
|
86
|
+
[property: string]: {
|
|
87
|
+
maxLength?: number,
|
|
88
|
+
minLength?: number,
|
|
89
|
+
pattern?: string,
|
|
90
|
+
maximum?: number,
|
|
91
|
+
exclusiveMaximum?: boolean,
|
|
92
|
+
minimum?: number,
|
|
93
|
+
exclusiveMinimum?: boolean,
|
|
94
|
+
multipleOf?: number,
|
|
95
|
+
maxItems?: number,
|
|
96
|
+
minItems?: number,
|
|
97
|
+
uniqueItems?: boolean
|
|
98
|
+
}
|
|
99
|
+
} = {
|
|
100
|
+
content: {
|
|
101
|
+
minLength: 1,
|
|
102
|
+
},
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ChunkMetadataInput } from './ChunkMetadataInput';
|
|
17
|
+
import {
|
|
18
|
+
ChunkMetadataInputFromJSON,
|
|
19
|
+
ChunkMetadataInputFromJSONTyped,
|
|
20
|
+
ChunkMetadataInputToJSON,
|
|
21
|
+
ChunkMetadataInputToJSONTyped,
|
|
22
|
+
} from './ChunkMetadataInput';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Request to update chunk metadata (merge).
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateChunkMetadataRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateChunkMetadataRequest {
|
|
30
|
+
/**
|
|
31
|
+
* Metadata to merge into existing chunk_metadata
|
|
32
|
+
* @type {ChunkMetadataInput}
|
|
33
|
+
* @memberof UpdateChunkMetadataRequest
|
|
34
|
+
*/
|
|
35
|
+
chunkMetadata: ChunkMetadataInput;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the UpdateChunkMetadataRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfUpdateChunkMetadataRequest(value: object): value is UpdateChunkMetadataRequest {
|
|
42
|
+
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function UpdateChunkMetadataRequestFromJSON(json: any): UpdateChunkMetadataRequest {
|
|
47
|
+
return UpdateChunkMetadataRequestFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function UpdateChunkMetadataRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateChunkMetadataRequest {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'chunkMetadata': ChunkMetadataInputFromJSON(json['chunk_metadata']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function UpdateChunkMetadataRequestToJSON(json: any): UpdateChunkMetadataRequest {
|
|
61
|
+
return UpdateChunkMetadataRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function UpdateChunkMetadataRequestToJSONTyped(value?: UpdateChunkMetadataRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'chunk_metadata': ChunkMetadataInputToJSON(value['chunkMetadata']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export const UpdateChunkMetadataRequestPropertyValidationAttributesMap: {
|
|
76
|
+
[property: string]: {
|
|
77
|
+
maxLength?: number,
|
|
78
|
+
minLength?: number,
|
|
79
|
+
pattern?: string,
|
|
80
|
+
maximum?: number,
|
|
81
|
+
exclusiveMaximum?: boolean,
|
|
82
|
+
minimum?: number,
|
|
83
|
+
exclusiveMinimum?: boolean,
|
|
84
|
+
multipleOf?: number,
|
|
85
|
+
maxItems?: number,
|
|
86
|
+
minItems?: number,
|
|
87
|
+
uniqueItems?: boolean
|
|
88
|
+
}
|
|
89
|
+
} = {
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Request to update a section.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateSectionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateSectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
* New section name (can contain any characters)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateSectionRequest
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
* New page number (must be > 0)
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof UpdateSectionRequest
|
|
32
|
+
*/
|
|
33
|
+
pageNumber?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Move after this sibling PathPart ID
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UpdateSectionRequest
|
|
38
|
+
*/
|
|
39
|
+
prevSiblingPathId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Set to true to move to head of sibling list. This is needed since prev_sibling_path_id = None means no update
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof UpdateSectionRequest
|
|
44
|
+
*/
|
|
45
|
+
moveToHead?: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the UpdateSectionRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfUpdateSectionRequest(value: object): value is UpdateSectionRequest {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function UpdateSectionRequestFromJSON(json: any): UpdateSectionRequest {
|
|
56
|
+
return UpdateSectionRequestFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UpdateSectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSectionRequest {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
66
|
+
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
67
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
68
|
+
'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function UpdateSectionRequestToJSON(json: any): UpdateSectionRequest {
|
|
73
|
+
return UpdateSectionRequestToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function UpdateSectionRequestToJSONTyped(value?: UpdateSectionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'name': value['name'],
|
|
84
|
+
'page_number': value['pageNumber'],
|
|
85
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
86
|
+
'move_to_head': value['moveToHead'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export const UpdateSectionRequestPropertyValidationAttributesMap: {
|
|
91
|
+
[property: string]: {
|
|
92
|
+
maxLength?: number,
|
|
93
|
+
minLength?: number,
|
|
94
|
+
pattern?: string,
|
|
95
|
+
maximum?: number,
|
|
96
|
+
exclusiveMaximum?: boolean,
|
|
97
|
+
minimum?: number,
|
|
98
|
+
exclusiveMinimum?: boolean,
|
|
99
|
+
multipleOf?: number,
|
|
100
|
+
maxItems?: number,
|
|
101
|
+
minItems?: number,
|
|
102
|
+
uniqueItems?: boolean
|
|
103
|
+
}
|
|
104
|
+
} = {
|
|
105
|
+
name: {
|
|
106
|
+
maxLength: 255,
|
|
107
|
+
minLength: 1,
|
|
108
|
+
},
|
|
109
|
+
}
|
|
110
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './ChunkMetadataInput';
|
|
4
|
+
export * from './ChunkMetadataOutput';
|
|
5
|
+
export * from './ChunkResponse';
|
|
6
|
+
export * from './ChunkType';
|
|
7
|
+
export * from './CreateChunkRequest';
|
|
3
8
|
export * from './CreateDocumentRequest';
|
|
4
9
|
export * from './CreateFolderRequest';
|
|
5
10
|
export * from './CreatePasswordUserRequest';
|
|
11
|
+
export * from './CreateSectionRequest';
|
|
6
12
|
export * from './CreateTenantRequest';
|
|
7
13
|
export * from './DocumentOrigin';
|
|
8
14
|
export * from './DocumentResponse';
|
|
@@ -30,13 +36,19 @@ export * from './PasswordResetRequest';
|
|
|
30
36
|
export * from './PasswordResetWithTokenRequest';
|
|
31
37
|
export * from './PathOrder';
|
|
32
38
|
export * from './PathPartResponse';
|
|
39
|
+
export * from './Polygon';
|
|
40
|
+
export * from './PolygonReference';
|
|
33
41
|
export * from './RootResponse';
|
|
42
|
+
export * from './SectionResponse';
|
|
34
43
|
export * from './SignInRequest';
|
|
35
44
|
export * from './TenantResponse';
|
|
36
45
|
export * from './TenantUserInTenantResponse';
|
|
37
46
|
export * from './TenantUserRole';
|
|
47
|
+
export * from './UpdateChunkContentRequest';
|
|
48
|
+
export * from './UpdateChunkMetadataRequest';
|
|
38
49
|
export * from './UpdateDocumentRequest';
|
|
39
50
|
export * from './UpdateFolderRequest';
|
|
51
|
+
export * from './UpdateSectionRequest';
|
|
40
52
|
export * from './UpdateTenantRequest';
|
|
41
53
|
export * from './UpdateUserRequest';
|
|
42
54
|
export * from './UserResponse';
|