@knowledge-stack/ksapi 1.57.0 → 1.59.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 +12 -2
- package/README.md +16 -6
- package/dist/apis/FoldersApi.d.ts +63 -4
- package/dist/apis/FoldersApi.js +64 -3
- package/dist/apis/PathPartsApi.d.ts +45 -1
- package/dist/apis/PathPartsApi.js +44 -0
- package/dist/apis/SectionsApi.d.ts +44 -0
- package/dist/apis/SectionsApi.js +43 -0
- package/dist/apis/WorkflowsApi.d.ts +144 -59
- package/dist/apis/WorkflowsApi.js +131 -49
- package/dist/esm/apis/FoldersApi.d.ts +63 -4
- package/dist/esm/apis/FoldersApi.js +64 -3
- package/dist/esm/apis/PathPartsApi.d.ts +45 -1
- package/dist/esm/apis/PathPartsApi.js +45 -1
- package/dist/esm/apis/SectionsApi.d.ts +44 -0
- package/dist/esm/apis/SectionsApi.js +43 -0
- package/dist/esm/apis/WorkflowsApi.d.ts +144 -59
- package/dist/esm/apis/WorkflowsApi.js +132 -50
- package/dist/esm/models/AncestryResponse.d.ts +48 -0
- package/dist/esm/models/AncestryResponse.js +45 -0
- package/dist/esm/models/PathPartAncestorItem.d.ts +96 -0
- package/dist/esm/models/PathPartAncestorItem.js +77 -0
- package/dist/esm/models/SearchSortOrder.d.ts +26 -0
- package/dist/esm/models/SearchSortOrder.js +44 -0
- package/dist/esm/models/SearchablePartType.d.ts +25 -0
- package/dist/esm/models/SearchablePartType.js +43 -0
- package/dist/esm/models/TemporalWorkflowStatusResponse.d.ts +83 -0
- package/dist/esm/models/TemporalWorkflowStatusResponse.js +66 -0
- package/dist/esm/models/WorkflowActionResponse.d.ts +1 -1
- package/dist/esm/models/WorkflowCancelResponse.d.ts +53 -0
- package/dist/esm/models/WorkflowCancelResponse.js +48 -0
- package/dist/esm/models/index.d.ts +6 -1
- package/dist/esm/models/index.js +6 -1
- package/dist/models/AncestryResponse.d.ts +48 -0
- package/dist/models/AncestryResponse.js +53 -0
- package/dist/models/PathPartAncestorItem.d.ts +96 -0
- package/dist/models/PathPartAncestorItem.js +85 -0
- package/dist/models/SearchSortOrder.d.ts +26 -0
- package/dist/models/SearchSortOrder.js +52 -0
- package/dist/models/SearchablePartType.d.ts +25 -0
- package/dist/models/SearchablePartType.js +51 -0
- package/dist/models/TemporalWorkflowStatusResponse.d.ts +83 -0
- package/dist/models/TemporalWorkflowStatusResponse.js +74 -0
- package/dist/models/WorkflowActionResponse.d.ts +1 -1
- package/dist/models/WorkflowCancelResponse.d.ts +53 -0
- package/dist/models/WorkflowCancelResponse.js +56 -0
- package/dist/models/index.d.ts +6 -1
- package/dist/models/index.js +6 -1
- package/docs/AncestryResponse.md +35 -0
- package/docs/FoldersApi.md +94 -4
- package/docs/PathPartAncestorItem.md +51 -0
- package/docs/PathPartsApi.md +75 -0
- package/docs/{WorkflowAction.md → SearchSortOrder.md} +5 -5
- package/docs/SearchablePartType.md +33 -0
- package/docs/SectionsApi.md +75 -0
- package/docs/TemporalWorkflowStatusResponse.md +47 -0
- package/docs/WorkflowActionResponse.md +1 -1
- package/docs/WorkflowCancelResponse.md +37 -0
- package/docs/WorkflowsApi.md +183 -36
- package/package.json +1 -1
- package/src/apis/FoldersApi.ts +136 -7
- package/src/apis/PathPartsApi.ts +88 -0
- package/src/apis/SectionsApi.ts +81 -0
- package/src/apis/WorkflowsApi.ts +249 -90
- package/src/models/AncestryResponse.ts +91 -0
- package/src/models/PathPartAncestorItem.ts +165 -0
- package/src/models/SearchSortOrder.ts +54 -0
- package/src/models/SearchablePartType.ts +53 -0
- package/src/models/TemporalWorkflowStatusResponse.ts +136 -0
- package/src/models/WorkflowActionResponse.ts +1 -1
- package/src/models/WorkflowCancelResponse.ts +92 -0
- package/src/models/index.ts +6 -1
- package/dist/esm/models/WorkflowAction.d.ts +0 -25
- package/dist/esm/models/WorkflowAction.js +0 -43
- package/dist/models/WorkflowAction.d.ts +0 -25
- package/dist/models/WorkflowAction.js +0 -51
- package/src/models/WorkflowAction.ts +0 -53
|
@@ -0,0 +1,165 @@
|
|
|
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 { PartType } from './PartType';
|
|
17
|
+
import {
|
|
18
|
+
PartTypeFromJSON,
|
|
19
|
+
PartTypeFromJSONTyped,
|
|
20
|
+
PartTypeToJSON,
|
|
21
|
+
PartTypeToJSONTyped,
|
|
22
|
+
} from './PartType';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Single ancestor item in an ancestry chain.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PathPartAncestorItem
|
|
28
|
+
*/
|
|
29
|
+
export interface PathPartAncestorItem {
|
|
30
|
+
/**
|
|
31
|
+
* PathPart ID
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PathPartAncestorItem
|
|
34
|
+
*/
|
|
35
|
+
pathPartId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Item name
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PathPartAncestorItem
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {PartType}
|
|
45
|
+
* @memberof PathPartAncestorItem
|
|
46
|
+
*/
|
|
47
|
+
partType: PartType;
|
|
48
|
+
/**
|
|
49
|
+
* Parent PathPart ID
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PathPartAncestorItem
|
|
52
|
+
*/
|
|
53
|
+
parentPathId: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* ID of the underlying object
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PathPartAncestorItem
|
|
58
|
+
*/
|
|
59
|
+
metadataObjId: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Full materialized path from root
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PathPartAncestorItem
|
|
64
|
+
*/
|
|
65
|
+
materializedPath: string;
|
|
66
|
+
/**
|
|
67
|
+
* Whether this path part is system-managed
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof PathPartAncestorItem
|
|
70
|
+
*/
|
|
71
|
+
systemManaged: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Creation timestamp
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof PathPartAncestorItem
|
|
76
|
+
*/
|
|
77
|
+
createdAt: Date;
|
|
78
|
+
/**
|
|
79
|
+
* Last update timestamp
|
|
80
|
+
* @type {Date}
|
|
81
|
+
* @memberof PathPartAncestorItem
|
|
82
|
+
*/
|
|
83
|
+
updatedAt: Date;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the PathPartAncestorItem interface.
|
|
90
|
+
*/
|
|
91
|
+
export function instanceOfPathPartAncestorItem(value: object): value is PathPartAncestorItem {
|
|
92
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
93
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
94
|
+
if (!('partType' in value) || value['partType'] === undefined) return false;
|
|
95
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined) return false;
|
|
96
|
+
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined) return false;
|
|
97
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
98
|
+
if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
|
|
99
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
100
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function PathPartAncestorItemFromJSON(json: any): PathPartAncestorItem {
|
|
105
|
+
return PathPartAncestorItemFromJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function PathPartAncestorItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartAncestorItem {
|
|
109
|
+
if (json == null) {
|
|
110
|
+
return json;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'pathPartId': json['path_part_id'],
|
|
115
|
+
'name': json['name'],
|
|
116
|
+
'partType': PartTypeFromJSON(json['part_type']),
|
|
117
|
+
'parentPathId': json['parent_path_id'],
|
|
118
|
+
'metadataObjId': json['metadata_obj_id'],
|
|
119
|
+
'materializedPath': json['materialized_path'],
|
|
120
|
+
'systemManaged': json['system_managed'],
|
|
121
|
+
'createdAt': (new Date(json['created_at'])),
|
|
122
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function PathPartAncestorItemToJSON(json: any): PathPartAncestorItem {
|
|
127
|
+
return PathPartAncestorItemToJSONTyped(json, false);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function PathPartAncestorItemToJSONTyped(value?: PathPartAncestorItem | null, ignoreDiscriminator: boolean = false): any {
|
|
131
|
+
if (value == null) {
|
|
132
|
+
return value;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return {
|
|
136
|
+
|
|
137
|
+
'path_part_id': value['pathPartId'],
|
|
138
|
+
'name': value['name'],
|
|
139
|
+
'part_type': PartTypeToJSON(value['partType']),
|
|
140
|
+
'parent_path_id': value['parentPathId'],
|
|
141
|
+
'metadata_obj_id': value['metadataObjId'],
|
|
142
|
+
'materialized_path': value['materializedPath'],
|
|
143
|
+
'system_managed': value['systemManaged'],
|
|
144
|
+
'created_at': value['createdAt'].toISOString(),
|
|
145
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export const PathPartAncestorItemPropertyValidationAttributesMap: {
|
|
150
|
+
[property: string]: {
|
|
151
|
+
maxLength?: number,
|
|
152
|
+
minLength?: number,
|
|
153
|
+
pattern?: string,
|
|
154
|
+
maximum?: number,
|
|
155
|
+
exclusiveMaximum?: boolean,
|
|
156
|
+
minimum?: number,
|
|
157
|
+
exclusiveMinimum?: boolean,
|
|
158
|
+
multipleOf?: number,
|
|
159
|
+
maxItems?: number,
|
|
160
|
+
minItems?: number,
|
|
161
|
+
uniqueItems?: boolean
|
|
162
|
+
}
|
|
163
|
+
} = {
|
|
164
|
+
}
|
|
165
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Sort order options for search results.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const SearchSortOrder = {
|
|
21
|
+
Name: 'NAME',
|
|
22
|
+
UpdatedAt: 'UPDATED_AT',
|
|
23
|
+
CreatedAt: 'CREATED_AT'
|
|
24
|
+
} as const;
|
|
25
|
+
export type SearchSortOrder = typeof SearchSortOrder[keyof typeof SearchSortOrder];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfSearchSortOrder(value: any): boolean {
|
|
29
|
+
for (const key in SearchSortOrder) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(SearchSortOrder, key)) {
|
|
31
|
+
if (SearchSortOrder[key as keyof typeof SearchSortOrder] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function SearchSortOrderFromJSON(json: any): SearchSortOrder {
|
|
40
|
+
return SearchSortOrderFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function SearchSortOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSortOrder {
|
|
44
|
+
return json as SearchSortOrder;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function SearchSortOrderToJSON(value?: SearchSortOrder | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SearchSortOrderToJSONTyped(value: any, ignoreDiscriminator: boolean): SearchSortOrder {
|
|
52
|
+
return value as SearchSortOrder;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Part types that can be searched.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const SearchablePartType = {
|
|
21
|
+
Folder: 'FOLDER',
|
|
22
|
+
Document: 'DOCUMENT'
|
|
23
|
+
} as const;
|
|
24
|
+
export type SearchablePartType = typeof SearchablePartType[keyof typeof SearchablePartType];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfSearchablePartType(value: any): boolean {
|
|
28
|
+
for (const key in SearchablePartType) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(SearchablePartType, key)) {
|
|
30
|
+
if (SearchablePartType[key as keyof typeof SearchablePartType] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function SearchablePartTypeFromJSON(json: any): SearchablePartType {
|
|
39
|
+
return SearchablePartTypeFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function SearchablePartTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchablePartType {
|
|
43
|
+
return json as SearchablePartType;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function SearchablePartTypeToJSON(value?: SearchablePartType | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SearchablePartTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SearchablePartType {
|
|
51
|
+
return value as SearchablePartType;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
* Generic Temporal workflow status — no DB interaction.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TemporalWorkflowStatusResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface TemporalWorkflowStatusResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
26
|
+
*/
|
|
27
|
+
workflowId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
32
|
+
*/
|
|
33
|
+
temporalStatus: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
38
|
+
*/
|
|
39
|
+
workflowType: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
44
|
+
*/
|
|
45
|
+
taskQueue: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
50
|
+
*/
|
|
51
|
+
startTime: Date;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
56
|
+
*/
|
|
57
|
+
closeTime?: Date | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
62
|
+
*/
|
|
63
|
+
runId: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the TemporalWorkflowStatusResponse interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfTemporalWorkflowStatusResponse(value: object): value is TemporalWorkflowStatusResponse {
|
|
70
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined) return false;
|
|
71
|
+
if (!('temporalStatus' in value) || value['temporalStatus'] === undefined) return false;
|
|
72
|
+
if (!('workflowType' in value) || value['workflowType'] === undefined) return false;
|
|
73
|
+
if (!('taskQueue' in value) || value['taskQueue'] === undefined) return false;
|
|
74
|
+
if (!('startTime' in value) || value['startTime'] === undefined) return false;
|
|
75
|
+
if (!('runId' in value) || value['runId'] === undefined) return false;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function TemporalWorkflowStatusResponseFromJSON(json: any): TemporalWorkflowStatusResponse {
|
|
80
|
+
return TemporalWorkflowStatusResponseFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function TemporalWorkflowStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemporalWorkflowStatusResponse {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'workflowId': json['workflow_id'],
|
|
90
|
+
'temporalStatus': json['temporal_status'],
|
|
91
|
+
'workflowType': json['workflow_type'],
|
|
92
|
+
'taskQueue': json['task_queue'],
|
|
93
|
+
'startTime': (new Date(json['start_time'])),
|
|
94
|
+
'closeTime': json['close_time'] == null ? undefined : (new Date(json['close_time'])),
|
|
95
|
+
'runId': json['run_id'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function TemporalWorkflowStatusResponseToJSON(json: any): TemporalWorkflowStatusResponse {
|
|
100
|
+
return TemporalWorkflowStatusResponseToJSONTyped(json, false);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function TemporalWorkflowStatusResponseToJSONTyped(value?: TemporalWorkflowStatusResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'workflow_id': value['workflowId'],
|
|
111
|
+
'temporal_status': value['temporalStatus'],
|
|
112
|
+
'workflow_type': value['workflowType'],
|
|
113
|
+
'task_queue': value['taskQueue'],
|
|
114
|
+
'start_time': value['startTime'].toISOString(),
|
|
115
|
+
'close_time': value['closeTime'] == null ? value['closeTime'] : value['closeTime'].toISOString(),
|
|
116
|
+
'run_id': value['runId'],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export const TemporalWorkflowStatusResponsePropertyValidationAttributesMap: {
|
|
121
|
+
[property: string]: {
|
|
122
|
+
maxLength?: number,
|
|
123
|
+
minLength?: number,
|
|
124
|
+
pattern?: string,
|
|
125
|
+
maximum?: number,
|
|
126
|
+
exclusiveMaximum?: boolean,
|
|
127
|
+
minimum?: number,
|
|
128
|
+
exclusiveMinimum?: boolean,
|
|
129
|
+
multipleOf?: number,
|
|
130
|
+
maxItems?: number,
|
|
131
|
+
minItems?: number,
|
|
132
|
+
uniqueItems?: boolean
|
|
133
|
+
}
|
|
134
|
+
} = {
|
|
135
|
+
}
|
|
136
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
* Response for generic workflow cancellation.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface WorkflowCancelResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface WorkflowCancelResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof WorkflowCancelResponse
|
|
26
|
+
*/
|
|
27
|
+
workflowId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof WorkflowCancelResponse
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the WorkflowCancelResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfWorkflowCancelResponse(value: object): value is WorkflowCancelResponse {
|
|
40
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined) return false;
|
|
41
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function WorkflowCancelResponseFromJSON(json: any): WorkflowCancelResponse {
|
|
46
|
+
return WorkflowCancelResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function WorkflowCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowCancelResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'workflowId': json['workflow_id'],
|
|
56
|
+
'message': json['message'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function WorkflowCancelResponseToJSON(json: any): WorkflowCancelResponse {
|
|
61
|
+
return WorkflowCancelResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function WorkflowCancelResponseToJSONTyped(value?: WorkflowCancelResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'workflow_id': value['workflowId'],
|
|
72
|
+
'message': value['message'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export const WorkflowCancelResponsePropertyValidationAttributesMap: {
|
|
77
|
+
[property: string]: {
|
|
78
|
+
maxLength?: number,
|
|
79
|
+
minLength?: number,
|
|
80
|
+
pattern?: string,
|
|
81
|
+
maximum?: number,
|
|
82
|
+
exclusiveMaximum?: boolean,
|
|
83
|
+
minimum?: number,
|
|
84
|
+
exclusiveMinimum?: boolean,
|
|
85
|
+
multipleOf?: number,
|
|
86
|
+
maxItems?: number,
|
|
87
|
+
minItems?: number,
|
|
88
|
+
uniqueItems?: boolean
|
|
89
|
+
}
|
|
90
|
+
} = {
|
|
91
|
+
}
|
|
92
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AcceptInviteResponse';
|
|
4
|
+
export * from './AncestryResponse';
|
|
4
5
|
export * from './ApiKeyResponse';
|
|
5
6
|
export * from './Args';
|
|
6
7
|
export * from './BrandingLogoType';
|
|
@@ -83,6 +84,7 @@ export * from './PartType';
|
|
|
83
84
|
export * from './PasswordResetRequest';
|
|
84
85
|
export * from './PasswordResetWithTokenRequest';
|
|
85
86
|
export * from './PathOrder';
|
|
87
|
+
export * from './PathPartAncestorItem';
|
|
86
88
|
export * from './PathPartResponse';
|
|
87
89
|
export * from './PathPartTagsResponse';
|
|
88
90
|
export * from './PermissionCapability';
|
|
@@ -97,7 +99,9 @@ export * from './ResolvedReferenceOutput';
|
|
|
97
99
|
export * from './RootResponse';
|
|
98
100
|
export * from './SSOInitiateResponse';
|
|
99
101
|
export * from './ScoredChunkResponse';
|
|
102
|
+
export * from './SearchSortOrder';
|
|
100
103
|
export * from './SearchType';
|
|
104
|
+
export * from './SearchablePartType';
|
|
101
105
|
export * from './SectionContentItem';
|
|
102
106
|
export * from './SectionContentItemOrChunkContentItem';
|
|
103
107
|
export * from './SectionResponse';
|
|
@@ -110,6 +114,7 @@ export * from './SubtreeChunkGroup';
|
|
|
110
114
|
export * from './SubtreeChunksResponse';
|
|
111
115
|
export * from './SupportedLanguage';
|
|
112
116
|
export * from './TagResponse';
|
|
117
|
+
export * from './TemporalWorkflowStatusResponse';
|
|
113
118
|
export * from './TenantBrandingResponse';
|
|
114
119
|
export * from './TenantResponse';
|
|
115
120
|
export * from './TenantSettingsResponse';
|
|
@@ -137,7 +142,7 @@ export * from './UserMessageResponse';
|
|
|
137
142
|
export * from './UserResponse';
|
|
138
143
|
export * from './ValidationError';
|
|
139
144
|
export * from './VersionChunkIdsResponse';
|
|
140
|
-
export * from './WorkflowAction';
|
|
141
145
|
export * from './WorkflowActionResponse';
|
|
146
|
+
export * from './WorkflowCancelResponse';
|
|
142
147
|
export * from './WorkflowDetailResponse';
|
|
143
148
|
export * from './WorkflowSummaryResponse';
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
* Supported workflow actions.
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
export declare const WorkflowAction: {
|
|
17
|
-
readonly Rerun: "rerun";
|
|
18
|
-
readonly Cancel: "cancel";
|
|
19
|
-
};
|
|
20
|
-
export type WorkflowAction = typeof WorkflowAction[keyof typeof WorkflowAction];
|
|
21
|
-
export declare function instanceOfWorkflowAction(value: any): boolean;
|
|
22
|
-
export declare function WorkflowActionFromJSON(json: any): WorkflowAction;
|
|
23
|
-
export declare function WorkflowActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowAction;
|
|
24
|
-
export declare function WorkflowActionToJSON(value?: WorkflowAction | null): any;
|
|
25
|
-
export declare function WorkflowActionToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowAction;
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
* Supported workflow actions.
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export const WorkflowAction = {
|
|
19
|
-
Rerun: 'rerun',
|
|
20
|
-
Cancel: 'cancel'
|
|
21
|
-
};
|
|
22
|
-
export function instanceOfWorkflowAction(value) {
|
|
23
|
-
for (const key in WorkflowAction) {
|
|
24
|
-
if (Object.prototype.hasOwnProperty.call(WorkflowAction, key)) {
|
|
25
|
-
if (WorkflowAction[key] === value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
export function WorkflowActionFromJSON(json) {
|
|
33
|
-
return WorkflowActionFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
export function WorkflowActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
export function WorkflowActionToJSON(value) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
export function WorkflowActionToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
* Supported workflow actions.
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
export declare const WorkflowAction: {
|
|
17
|
-
readonly Rerun: "rerun";
|
|
18
|
-
readonly Cancel: "cancel";
|
|
19
|
-
};
|
|
20
|
-
export type WorkflowAction = typeof WorkflowAction[keyof typeof WorkflowAction];
|
|
21
|
-
export declare function instanceOfWorkflowAction(value: any): boolean;
|
|
22
|
-
export declare function WorkflowActionFromJSON(json: any): WorkflowAction;
|
|
23
|
-
export declare function WorkflowActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowAction;
|
|
24
|
-
export declare function WorkflowActionToJSON(value?: WorkflowAction | null): any;
|
|
25
|
-
export declare function WorkflowActionToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowAction;
|