@knowledge-stack/ksapi 1.6.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 (38) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/dist/apis/PathPartsApi.d.ts +30 -1
  4. package/dist/apis/PathPartsApi.js +32 -0
  5. package/dist/apis/SectionsApi.d.ts +144 -0
  6. package/dist/apis/SectionsApi.js +166 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/PathPartsApi.d.ts +30 -1
  10. package/dist/esm/apis/PathPartsApi.js +33 -1
  11. package/dist/esm/apis/SectionsApi.d.ts +144 -0
  12. package/dist/esm/apis/SectionsApi.js +162 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/CreateSectionRequest.d.ts +65 -0
  16. package/dist/esm/models/CreateSectionRequest.js +57 -0
  17. package/dist/esm/models/SectionResponse.d.ts +101 -0
  18. package/dist/esm/models/SectionResponse.js +74 -0
  19. package/dist/esm/models/UpdateSectionRequest.d.ts +65 -0
  20. package/dist/esm/models/UpdateSectionRequest.js +53 -0
  21. package/dist/esm/models/index.d.ts +3 -0
  22. package/dist/esm/models/index.js +3 -0
  23. package/dist/models/CreateSectionRequest.d.ts +65 -0
  24. package/dist/models/CreateSectionRequest.js +65 -0
  25. package/dist/models/SectionResponse.d.ts +101 -0
  26. package/dist/models/SectionResponse.js +82 -0
  27. package/dist/models/UpdateSectionRequest.d.ts +65 -0
  28. package/dist/models/UpdateSectionRequest.js +61 -0
  29. package/dist/models/index.d.ts +3 -0
  30. package/dist/models/index.js +3 -0
  31. package/package.json +1 -1
  32. package/src/apis/PathPartsApi.ts +64 -0
  33. package/src/apis/SectionsApi.ts +305 -0
  34. package/src/apis/index.ts +1 -0
  35. package/src/models/CreateSectionRequest.ts +112 -0
  36. package/src/models/SectionResponse.ts +161 -0
  37. package/src/models/UpdateSectionRequest.ts +110 -0
  38. package/src/models/index.ts +3 -0
@@ -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
+
@@ -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';
@@ -31,12 +32,14 @@ export * from './PasswordResetWithTokenRequest';
31
32
  export * from './PathOrder';
32
33
  export * from './PathPartResponse';
33
34
  export * from './RootResponse';
35
+ export * from './SectionResponse';
34
36
  export * from './SignInRequest';
35
37
  export * from './TenantResponse';
36
38
  export * from './TenantUserInTenantResponse';
37
39
  export * from './TenantUserRole';
38
40
  export * from './UpdateDocumentRequest';
39
41
  export * from './UpdateFolderRequest';
42
+ export * from './UpdateSectionRequest';
40
43
  export * from './UpdateTenantRequest';
41
44
  export * from './UpdateUserRequest';
42
45
  export * from './UserResponse';