@knowledge-stack/ksapi 1.85.0 → 1.86.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 +0 -2
- package/README.md +2 -5
- package/dist/apis/WorkflowRunsApi.d.ts +13 -101
- package/dist/apis/WorkflowRunsApi.js +6 -93
- package/dist/esm/apis/WorkflowRunsApi.d.ts +13 -101
- package/dist/esm/apis/WorkflowRunsApi.js +7 -94
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/WorkflowRunsApi.md +3 -153
- package/package.json +1 -1
- package/src/apis/WorkflowRunsApi.ts +12 -184
- package/src/models/index.ts +0 -1
- package/dist/esm/models/RunLockResponse.d.ts +0 -59
- package/dist/esm/models/RunLockResponse.js +0 -52
- package/dist/models/RunLockResponse.d.ts +0 -59
- package/dist/models/RunLockResponse.js +0 -60
- package/docs/RunLockResponse.md +0 -39
- package/src/models/RunLockResponse.ts +0 -101
|
@@ -1,101 +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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
* Reviewer-lock state on a workflow run.
|
|
18
|
-
* @export
|
|
19
|
-
* @interface RunLockResponse
|
|
20
|
-
*/
|
|
21
|
-
export interface RunLockResponse {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof RunLockResponse
|
|
26
|
-
*/
|
|
27
|
-
runId: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof RunLockResponse
|
|
32
|
-
*/
|
|
33
|
-
lockUserId: string | null;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {Date}
|
|
37
|
-
* @memberof RunLockResponse
|
|
38
|
-
*/
|
|
39
|
-
lockAcquiredAt: Date | null;
|
|
40
|
-
}
|
|
41
|
-
export const RunLockResponsePropertyValidationAttributesMap: {
|
|
42
|
-
[property: string]: {
|
|
43
|
-
maxLength?: number,
|
|
44
|
-
minLength?: number,
|
|
45
|
-
pattern?: string,
|
|
46
|
-
maximum?: number,
|
|
47
|
-
exclusiveMaximum?: boolean,
|
|
48
|
-
minimum?: number,
|
|
49
|
-
exclusiveMinimum?: boolean,
|
|
50
|
-
multipleOf?: number,
|
|
51
|
-
maxItems?: number,
|
|
52
|
-
minItems?: number,
|
|
53
|
-
uniqueItems?: boolean
|
|
54
|
-
}
|
|
55
|
-
} = {
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Check if a given object implements the RunLockResponse interface.
|
|
61
|
-
*/
|
|
62
|
-
export function instanceOfRunLockResponse(value: object): value is RunLockResponse {
|
|
63
|
-
if (!('runId' in value) || value['runId'] === undefined) return false;
|
|
64
|
-
if (!('lockUserId' in value) || value['lockUserId'] === undefined) return false;
|
|
65
|
-
if (!('lockAcquiredAt' in value) || value['lockAcquiredAt'] === undefined) return false;
|
|
66
|
-
return true;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function RunLockResponseFromJSON(json: any): RunLockResponse {
|
|
70
|
-
return RunLockResponseFromJSONTyped(json, false);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function RunLockResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunLockResponse {
|
|
74
|
-
if (json == null) {
|
|
75
|
-
return json;
|
|
76
|
-
}
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'runId': json['run_id'],
|
|
80
|
-
'lockUserId': json['lock_user_id'],
|
|
81
|
-
'lockAcquiredAt': (json['lock_acquired_at'] == null ? null : new Date(json['lock_acquired_at'])),
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function RunLockResponseToJSON(json: any): RunLockResponse {
|
|
86
|
-
return RunLockResponseToJSONTyped(json, false);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export function RunLockResponseToJSONTyped(value?: RunLockResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
90
|
-
if (value == null) {
|
|
91
|
-
return value;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
return {
|
|
95
|
-
|
|
96
|
-
'run_id': value['runId'],
|
|
97
|
-
'lock_user_id': value['lockUserId'],
|
|
98
|
-
'lock_acquired_at': value['lockAcquiredAt'] == null ? value['lockAcquiredAt'] : value['lockAcquiredAt'].toISOString(),
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
|