@knowledge-stack/ksapi 1.118.0 → 1.119.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 +38 -4
- package/README.md +25 -4
- package/dist/apis/DataSourcesApi.d.ts +170 -9
- package/dist/apis/DataSourcesApi.js +207 -4
- package/dist/apis/DocumentVersionsApi.d.ts +4 -4
- package/dist/apis/DocumentVersionsApi.js +2 -2
- package/dist/apis/FoldersApi.d.ts +9 -9
- package/dist/apis/FoldersApi.js +2 -2
- package/dist/esm/apis/DataSourcesApi.d.ts +170 -9
- package/dist/esm/apis/DataSourcesApi.js +208 -5
- package/dist/esm/apis/DocumentVersionsApi.d.ts +4 -4
- package/dist/esm/apis/DocumentVersionsApi.js +2 -2
- package/dist/esm/apis/FoldersApi.d.ts +9 -9
- package/dist/esm/apis/FoldersApi.js +3 -3
- package/dist/esm/models/BlockChangeType.d.ts +26 -0
- package/dist/esm/models/BlockChangeType.js +44 -0
- package/dist/esm/models/BlockKind.d.ts +28 -0
- package/dist/esm/models/BlockKind.js +46 -0
- package/dist/esm/models/BulkModelTablesRequest.d.ts +48 -0
- package/dist/esm/models/BulkModelTablesRequest.js +50 -0
- package/dist/esm/models/BulkModelTablesResponse.d.ts +48 -0
- package/dist/esm/models/BulkModelTablesResponse.js +45 -0
- package/dist/esm/models/CellChange.d.ts +47 -0
- package/dist/esm/models/CellChange.js +14 -0
- package/dist/esm/models/CellDiff.d.ts +7 -0
- package/dist/esm/models/CellDiff.js +5 -0
- package/dist/esm/models/ChangeClass.d.ts +29 -0
- package/dist/esm/models/ChangeClass.js +47 -0
- package/dist/esm/models/DataSourceDescriptionResponse.d.ts +53 -0
- package/dist/esm/models/DataSourceDescriptionResponse.js +48 -0
- package/dist/esm/models/DataSourceDetailResponse.d.ts +13 -4
- package/dist/esm/models/DataSourceDetailResponse.js +6 -4
- package/dist/esm/models/DataSourceSchemaListItem.d.ts +53 -0
- package/dist/esm/models/DataSourceSchemaListItem.js +48 -0
- package/dist/esm/models/DataSourceSchemaListResponse.d.ts +3 -3
- package/dist/esm/models/DataSourceSchemaListResponse.js +3 -3
- package/dist/esm/models/DataSourceSchemaResponse.d.ts +95 -1
- package/dist/esm/models/DataSourceSchemaResponse.js +61 -0
- package/dist/esm/models/DataSourceTableResponse.d.ts +8 -5
- package/dist/esm/models/DataSourceTableResponse.js +4 -2
- package/dist/esm/models/DiffFormat.d.ts +2 -0
- package/dist/esm/models/DiffFormat.js +3 -1
- package/dist/esm/models/DocumentBlockChange.d.ts +174 -0
- package/dist/esm/models/DocumentBlockChange.js +97 -0
- package/dist/esm/models/DocumentDiff.d.ts +102 -0
- package/dist/esm/models/DocumentDiff.js +77 -0
- package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts} +9 -6
- package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.js} +11 -6
- package/dist/esm/models/ModelTableResult.d.ts +81 -0
- package/dist/esm/models/ModelTableResult.js +63 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +66 -0
- package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js} +12 -12
- package/dist/esm/models/PartType.d.ts +1 -0
- package/dist/esm/models/PartType.js +1 -0
- package/dist/esm/models/PixelRegion.d.ts +65 -0
- package/dist/esm/models/PixelRegion.js +56 -0
- package/dist/esm/models/ReferenceType.d.ts +1 -0
- package/dist/esm/models/ReferenceType.js +1 -0
- package/dist/esm/models/RevisionEdit.d.ts +71 -0
- package/dist/esm/models/RevisionEdit.js +57 -0
- package/dist/esm/models/SearchablePartType.d.ts +2 -0
- package/dist/esm/models/SearchablePartType.js +2 -0
- package/dist/esm/models/SheetVisibilityChange.d.ts +63 -0
- package/dist/esm/models/SheetVisibilityChange.js +52 -0
- package/dist/esm/models/StructuredChange.d.ts +69 -0
- package/dist/esm/models/StructuredChange.js +57 -0
- package/dist/esm/models/StructuredChangeType.d.ts +26 -0
- package/dist/esm/models/StructuredChangeType.js +44 -0
- package/dist/esm/models/StructuredDiff.d.ts +82 -0
- package/dist/esm/models/StructuredDiff.js +65 -0
- package/dist/esm/models/TableCellChange.d.ts +72 -0
- package/dist/esm/models/TableCellChange.js +61 -0
- package/dist/esm/models/VersionDiffResponse.d.ts +72 -1
- package/dist/esm/models/VersionDiffResponse.js +25 -0
- package/dist/esm/models/index.d.ts +19 -2
- package/dist/esm/models/index.js +19 -2
- package/dist/models/BlockChangeType.d.ts +26 -0
- package/dist/models/BlockChangeType.js +52 -0
- package/dist/models/BlockKind.d.ts +28 -0
- package/dist/models/BlockKind.js +54 -0
- package/dist/models/BulkModelTablesRequest.d.ts +48 -0
- package/dist/models/BulkModelTablesRequest.js +58 -0
- package/dist/models/BulkModelTablesResponse.d.ts +48 -0
- package/dist/models/BulkModelTablesResponse.js +53 -0
- package/dist/models/CellChange.d.ts +47 -0
- package/dist/models/CellChange.js +14 -0
- package/dist/models/CellDiff.d.ts +7 -0
- package/dist/models/CellDiff.js +5 -0
- package/dist/models/ChangeClass.d.ts +29 -0
- package/dist/models/ChangeClass.js +55 -0
- package/dist/models/DataSourceDescriptionResponse.d.ts +53 -0
- package/dist/models/DataSourceDescriptionResponse.js +56 -0
- package/dist/models/DataSourceDetailResponse.d.ts +13 -4
- package/dist/models/DataSourceDetailResponse.js +6 -4
- package/dist/models/DataSourceSchemaListItem.d.ts +53 -0
- package/dist/models/DataSourceSchemaListItem.js +56 -0
- package/dist/models/DataSourceSchemaListResponse.d.ts +3 -3
- package/dist/models/DataSourceSchemaListResponse.js +3 -3
- package/dist/models/DataSourceSchemaResponse.d.ts +95 -1
- package/dist/models/DataSourceSchemaResponse.js +62 -1
- package/dist/models/DataSourceTableResponse.d.ts +8 -5
- package/dist/models/DataSourceTableResponse.js +4 -2
- package/dist/models/DiffFormat.d.ts +2 -0
- package/dist/models/DiffFormat.js +3 -1
- package/dist/models/DocumentBlockChange.d.ts +174 -0
- package/dist/models/DocumentBlockChange.js +105 -0
- package/dist/models/DocumentDiff.d.ts +102 -0
- package/dist/models/DocumentDiff.js +85 -0
- package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts} +9 -6
- package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.js} +15 -10
- package/dist/models/ModelTableResult.d.ts +81 -0
- package/dist/models/ModelTableResult.js +71 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +66 -0
- package/dist/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js} +18 -18
- package/dist/models/PartType.d.ts +1 -0
- package/dist/models/PartType.js +1 -0
- package/dist/models/PixelRegion.d.ts +65 -0
- package/dist/models/PixelRegion.js +64 -0
- package/dist/models/ReferenceType.d.ts +1 -0
- package/dist/models/ReferenceType.js +1 -0
- package/dist/models/RevisionEdit.d.ts +71 -0
- package/dist/models/RevisionEdit.js +65 -0
- package/dist/models/SearchablePartType.d.ts +2 -0
- package/dist/models/SearchablePartType.js +2 -0
- package/dist/models/SheetVisibilityChange.d.ts +63 -0
- package/dist/models/SheetVisibilityChange.js +60 -0
- package/dist/models/StructuredChange.d.ts +69 -0
- package/dist/models/StructuredChange.js +65 -0
- package/dist/models/StructuredChangeType.d.ts +26 -0
- package/dist/models/StructuredChangeType.js +52 -0
- package/dist/models/StructuredDiff.d.ts +82 -0
- package/dist/models/StructuredDiff.js +73 -0
- package/dist/models/TableCellChange.d.ts +72 -0
- package/dist/models/TableCellChange.js +69 -0
- package/dist/models/VersionDiffResponse.d.ts +72 -1
- package/dist/models/VersionDiffResponse.js +25 -0
- package/dist/models/index.d.ts +19 -2
- package/dist/models/index.js +19 -2
- package/docs/BlockChangeType.md +32 -0
- package/docs/BlockKind.md +32 -0
- package/docs/BulkModelTablesRequest.md +35 -0
- package/docs/BulkModelTablesResponse.md +35 -0
- package/docs/CellChange.md +15 -1
- package/docs/CellDiff.md +2 -0
- package/docs/ChangeClass.md +33 -0
- package/docs/ChunksApi.md +1 -1
- package/docs/DataSourceDescriptionResponse.md +37 -0
- package/docs/DataSourceDetailResponse.md +5 -3
- package/docs/DataSourceSchemaListItem.md +37 -0
- package/docs/DataSourceSchemaListResponse.md +1 -1
- package/docs/DataSourceSchemaResponse.md +29 -0
- package/docs/DataSourceTableResponse.md +3 -3
- package/docs/DataSourcesApi.md +315 -2
- package/docs/DocumentBlockChange.md +73 -0
- package/docs/DocumentDiff.md +51 -0
- package/docs/DocumentVersionsApi.md +1 -1
- package/docs/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.md → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.md} +12 -6
- package/docs/FoldersApi.md +5 -5
- package/docs/ModelTableResult.md +43 -0
- package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.md → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.md} +5 -5
- package/docs/PixelRegion.md +41 -0
- package/docs/RevisionEdit.md +41 -0
- package/docs/SheetVisibilityChange.md +39 -0
- package/docs/StructuredChange.md +41 -0
- package/docs/StructuredChangeType.md +32 -0
- package/docs/StructuredDiff.md +45 -0
- package/docs/TableCellChange.md +43 -0
- package/docs/VersionDiffResponse.md +23 -1
- package/package.json +1 -1
- package/src/apis/DataSourcesApi.ts +382 -8
- package/src/apis/DocumentVersionsApi.ts +4 -4
- package/src/apis/FoldersApi.ts +13 -13
- package/src/models/BlockChangeType.ts +54 -0
- package/src/models/BlockKind.ts +56 -0
- package/src/models/BulkModelTablesRequest.ts +95 -0
- package/src/models/BulkModelTablesResponse.ts +91 -0
- package/src/models/CellChange.ts +61 -0
- package/src/models/CellDiff.ts +16 -0
- package/src/models/ChangeClass.ts +57 -0
- package/src/models/DataSourceDescriptionResponse.ts +92 -0
- package/src/models/DataSourceDetailResponse.ts +24 -13
- package/src/models/DataSourceSchemaListItem.ts +92 -0
- package/src/models/DataSourceSchemaListResponse.ts +10 -10
- package/src/models/DataSourceSchemaResponse.ts +157 -1
- package/src/models/DataSourceTableResponse.ts +11 -7
- package/src/models/DiffFormat.ts +3 -1
- package/src/models/DocumentBlockChange.ts +297 -0
- package/src/models/DocumentDiff.ts +169 -0
- package/src/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.ts} +19 -8
- package/src/models/ModelTableResult.ts +136 -0
- package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.ts} +25 -25
- package/src/models/PartType.ts +1 -0
- package/src/models/PixelRegion.ts +110 -0
- package/src/models/ReferenceType.ts +1 -0
- package/src/models/RevisionEdit.ts +125 -0
- package/src/models/SearchablePartType.ts +2 -0
- package/src/models/SheetVisibilityChange.ts +105 -0
- package/src/models/StructuredChange.ts +123 -0
- package/src/models/StructuredChangeType.ts +54 -0
- package/src/models/StructuredDiff.ts +140 -0
- package/src/models/TableCellChange.ts +129 -0
- package/src/models/VersionDiffResponse.ts +112 -1
- package/src/models/index.ts +19 -2
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +0 -66
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +0 -66
|
@@ -0,0 +1,71 @@
|
|
|
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 { BlockChangeType } from './BlockChangeType';
|
|
13
|
+
/**
|
|
14
|
+
* One tracked (un-accepted) change in a paragraph — the redline evidence.
|
|
15
|
+
*
|
|
16
|
+
* ``type`` is ``added`` for an insertion (``w:ins``) and ``removed`` for a
|
|
17
|
+
* deletion (``w:del``). ``author``/``date`` are the proposer and timestamp the
|
|
18
|
+
* editor recorded (may be null). A block carries these so an auditor sees who
|
|
19
|
+
* proposed what, and so finalizing a pending change is never invisible.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface RevisionEdit
|
|
22
|
+
*/
|
|
23
|
+
export interface RevisionEdit {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {BlockChangeType}
|
|
27
|
+
* @memberof RevisionEdit
|
|
28
|
+
*/
|
|
29
|
+
type: BlockChangeType;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RevisionEdit
|
|
34
|
+
*/
|
|
35
|
+
author: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RevisionEdit
|
|
40
|
+
*/
|
|
41
|
+
date: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof RevisionEdit
|
|
46
|
+
*/
|
|
47
|
+
text: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const RevisionEditPropertyValidationAttributesMap: {
|
|
50
|
+
[property: string]: {
|
|
51
|
+
maxLength?: number;
|
|
52
|
+
minLength?: number;
|
|
53
|
+
pattern?: string;
|
|
54
|
+
maximum?: number;
|
|
55
|
+
exclusiveMaximum?: boolean;
|
|
56
|
+
minimum?: number;
|
|
57
|
+
exclusiveMinimum?: boolean;
|
|
58
|
+
multipleOf?: number;
|
|
59
|
+
maxItems?: number;
|
|
60
|
+
minItems?: number;
|
|
61
|
+
uniqueItems?: boolean;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the RevisionEdit interface.
|
|
66
|
+
*/
|
|
67
|
+
export declare function instanceOfRevisionEdit(value: object): value is RevisionEdit;
|
|
68
|
+
export declare function RevisionEditFromJSON(json: any): RevisionEdit;
|
|
69
|
+
export declare function RevisionEditFromJSONTyped(json: any, ignoreDiscriminator: boolean): RevisionEdit;
|
|
70
|
+
export declare function RevisionEditToJSON(json: any): RevisionEdit;
|
|
71
|
+
export declare function RevisionEditToJSONTyped(value?: RevisionEdit | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.RevisionEditPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfRevisionEdit = instanceOfRevisionEdit;
|
|
18
|
+
exports.RevisionEditFromJSON = RevisionEditFromJSON;
|
|
19
|
+
exports.RevisionEditFromJSONTyped = RevisionEditFromJSONTyped;
|
|
20
|
+
exports.RevisionEditToJSON = RevisionEditToJSON;
|
|
21
|
+
exports.RevisionEditToJSONTyped = RevisionEditToJSONTyped;
|
|
22
|
+
const BlockChangeType_1 = require("./BlockChangeType");
|
|
23
|
+
exports.RevisionEditPropertyValidationAttributesMap = {};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the RevisionEdit interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfRevisionEdit(value) {
|
|
28
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('author' in value) || value['author'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function RevisionEditFromJSON(json) {
|
|
39
|
+
return RevisionEditFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function RevisionEditFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'type': (0, BlockChangeType_1.BlockChangeTypeFromJSON)(json['type']),
|
|
47
|
+
'author': json['author'],
|
|
48
|
+
'date': json['date'],
|
|
49
|
+
'text': json['text'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function RevisionEditToJSON(json) {
|
|
53
|
+
return RevisionEditToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function RevisionEditToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'type': (0, BlockChangeType_1.BlockChangeTypeToJSON)(value['type']),
|
|
61
|
+
'author': value['author'],
|
|
62
|
+
'date': value['date'],
|
|
63
|
+
'text': value['text'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -19,6 +19,8 @@ export declare const SearchablePartType: {
|
|
|
19
19
|
readonly WorkflowDefinition: "WORKFLOW_DEFINITION";
|
|
20
20
|
readonly WorkflowRun: "WORKFLOW_RUN";
|
|
21
21
|
readonly DataSource: "DATA_SOURCE";
|
|
22
|
+
readonly DataSourceSchema: "DATA_SOURCE_SCHEMA";
|
|
23
|
+
readonly DataSourceTable: "DATA_SOURCE_TABLE";
|
|
22
24
|
readonly ApiConnection: "API_CONNECTION";
|
|
23
25
|
};
|
|
24
26
|
export type SearchablePartType = typeof SearchablePartType[keyof typeof SearchablePartType];
|
|
@@ -29,6 +29,8 @@ exports.SearchablePartType = {
|
|
|
29
29
|
WorkflowDefinition: 'WORKFLOW_DEFINITION',
|
|
30
30
|
WorkflowRun: 'WORKFLOW_RUN',
|
|
31
31
|
DataSource: 'DATA_SOURCE',
|
|
32
|
+
DataSourceSchema: 'DATA_SOURCE_SCHEMA',
|
|
33
|
+
DataSourceTable: 'DATA_SOURCE_TABLE',
|
|
32
34
|
ApiConnection: 'API_CONNECTION'
|
|
33
35
|
};
|
|
34
36
|
function instanceOfSearchablePartType(value) {
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
* A worksheet that became hidden or visible.
|
|
14
|
+
*
|
|
15
|
+
* Hidden data is an audit red flag (a sheet quietly hidden between versions),
|
|
16
|
+
* so a ``visible``↔``hidden``/``veryHidden`` transition is surfaced. ``old_state``/
|
|
17
|
+
* ``new_state`` is null when the sheet was added or removed.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SheetVisibilityChange
|
|
20
|
+
*/
|
|
21
|
+
export interface SheetVisibilityChange {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SheetVisibilityChange
|
|
26
|
+
*/
|
|
27
|
+
sheet: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SheetVisibilityChange
|
|
32
|
+
*/
|
|
33
|
+
oldState: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SheetVisibilityChange
|
|
38
|
+
*/
|
|
39
|
+
newState: string | null;
|
|
40
|
+
}
|
|
41
|
+
export declare const SheetVisibilityChangePropertyValidationAttributesMap: {
|
|
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
|
+
* Check if a given object implements the SheetVisibilityChange interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfSheetVisibilityChange(value: object): value is SheetVisibilityChange;
|
|
60
|
+
export declare function SheetVisibilityChangeFromJSON(json: any): SheetVisibilityChange;
|
|
61
|
+
export declare function SheetVisibilityChangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SheetVisibilityChange;
|
|
62
|
+
export declare function SheetVisibilityChangeToJSON(json: any): SheetVisibilityChange;
|
|
63
|
+
export declare function SheetVisibilityChangeToJSONTyped(value?: SheetVisibilityChange | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.SheetVisibilityChangePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfSheetVisibilityChange = instanceOfSheetVisibilityChange;
|
|
18
|
+
exports.SheetVisibilityChangeFromJSON = SheetVisibilityChangeFromJSON;
|
|
19
|
+
exports.SheetVisibilityChangeFromJSONTyped = SheetVisibilityChangeFromJSONTyped;
|
|
20
|
+
exports.SheetVisibilityChangeToJSON = SheetVisibilityChangeToJSON;
|
|
21
|
+
exports.SheetVisibilityChangeToJSONTyped = SheetVisibilityChangeToJSONTyped;
|
|
22
|
+
exports.SheetVisibilityChangePropertyValidationAttributesMap = {};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the SheetVisibilityChange interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfSheetVisibilityChange(value) {
|
|
27
|
+
if (!('sheet' in value) || value['sheet'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('oldState' in value) || value['oldState'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('newState' in value) || value['newState'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function SheetVisibilityChangeFromJSON(json) {
|
|
36
|
+
return SheetVisibilityChangeFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function SheetVisibilityChangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'sheet': json['sheet'],
|
|
44
|
+
'oldState': json['old_state'],
|
|
45
|
+
'newState': json['new_state'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function SheetVisibilityChangeToJSON(json) {
|
|
49
|
+
return SheetVisibilityChangeToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function SheetVisibilityChangeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'sheet': value['sheet'],
|
|
57
|
+
'old_state': value['oldState'],
|
|
58
|
+
'new_state': value['newState'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { StructuredChangeType } from './StructuredChangeType';
|
|
13
|
+
/**
|
|
14
|
+
* One changed key-path in a JSON/YAML document.
|
|
15
|
+
*
|
|
16
|
+
* ``path`` is a dotted/indexed locator like ``services.web.image`` or
|
|
17
|
+
* ``items[3].qty``. ``old`` is null for added, ``new`` is null for removed.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface StructuredChange
|
|
20
|
+
*/
|
|
21
|
+
export interface StructuredChange {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StructuredChange
|
|
26
|
+
*/
|
|
27
|
+
path: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StructuredChange
|
|
32
|
+
*/
|
|
33
|
+
old: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof StructuredChange
|
|
38
|
+
*/
|
|
39
|
+
_new: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {StructuredChangeType}
|
|
43
|
+
* @memberof StructuredChange
|
|
44
|
+
*/
|
|
45
|
+
type: StructuredChangeType;
|
|
46
|
+
}
|
|
47
|
+
export declare const StructuredChangePropertyValidationAttributesMap: {
|
|
48
|
+
[property: string]: {
|
|
49
|
+
maxLength?: number;
|
|
50
|
+
minLength?: number;
|
|
51
|
+
pattern?: string;
|
|
52
|
+
maximum?: number;
|
|
53
|
+
exclusiveMaximum?: boolean;
|
|
54
|
+
minimum?: number;
|
|
55
|
+
exclusiveMinimum?: boolean;
|
|
56
|
+
multipleOf?: number;
|
|
57
|
+
maxItems?: number;
|
|
58
|
+
minItems?: number;
|
|
59
|
+
uniqueItems?: boolean;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the StructuredChange interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfStructuredChange(value: object): value is StructuredChange;
|
|
66
|
+
export declare function StructuredChangeFromJSON(json: any): StructuredChange;
|
|
67
|
+
export declare function StructuredChangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StructuredChange;
|
|
68
|
+
export declare function StructuredChangeToJSON(json: any): StructuredChange;
|
|
69
|
+
export declare function StructuredChangeToJSONTyped(value?: StructuredChange | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.StructuredChangePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfStructuredChange = instanceOfStructuredChange;
|
|
18
|
+
exports.StructuredChangeFromJSON = StructuredChangeFromJSON;
|
|
19
|
+
exports.StructuredChangeFromJSONTyped = StructuredChangeFromJSONTyped;
|
|
20
|
+
exports.StructuredChangeToJSON = StructuredChangeToJSON;
|
|
21
|
+
exports.StructuredChangeToJSONTyped = StructuredChangeToJSONTyped;
|
|
22
|
+
const StructuredChangeType_1 = require("./StructuredChangeType");
|
|
23
|
+
exports.StructuredChangePropertyValidationAttributesMap = {};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the StructuredChange interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfStructuredChange(value) {
|
|
28
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('old' in value) || value['old'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('_new' in value) || value['_new'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function StructuredChangeFromJSON(json) {
|
|
39
|
+
return StructuredChangeFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function StructuredChangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'path': json['path'],
|
|
47
|
+
'old': json['old'],
|
|
48
|
+
'_new': json['new'],
|
|
49
|
+
'type': (0, StructuredChangeType_1.StructuredChangeTypeFromJSON)(json['type']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function StructuredChangeToJSON(json) {
|
|
53
|
+
return StructuredChangeToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function StructuredChangeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'path': value['path'],
|
|
61
|
+
'old': value['old'],
|
|
62
|
+
'new': value['_new'],
|
|
63
|
+
'type': (0, StructuredChangeType_1.StructuredChangeTypeToJSON)(value['type']),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const StructuredChangeType: {
|
|
17
|
+
readonly Added: "added";
|
|
18
|
+
readonly Removed: "removed";
|
|
19
|
+
readonly Modified: "modified";
|
|
20
|
+
};
|
|
21
|
+
export type StructuredChangeType = typeof StructuredChangeType[keyof typeof StructuredChangeType];
|
|
22
|
+
export declare function instanceOfStructuredChangeType(value: any): boolean;
|
|
23
|
+
export declare function StructuredChangeTypeFromJSON(json: any): StructuredChangeType;
|
|
24
|
+
export declare function StructuredChangeTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StructuredChangeType;
|
|
25
|
+
export declare function StructuredChangeTypeToJSON(value?: StructuredChangeType | null): any;
|
|
26
|
+
export declare function StructuredChangeTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): StructuredChangeType;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.StructuredChangeType = void 0;
|
|
17
|
+
exports.instanceOfStructuredChangeType = instanceOfStructuredChangeType;
|
|
18
|
+
exports.StructuredChangeTypeFromJSON = StructuredChangeTypeFromJSON;
|
|
19
|
+
exports.StructuredChangeTypeFromJSONTyped = StructuredChangeTypeFromJSONTyped;
|
|
20
|
+
exports.StructuredChangeTypeToJSON = StructuredChangeTypeToJSON;
|
|
21
|
+
exports.StructuredChangeTypeToJSONTyped = StructuredChangeTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.StructuredChangeType = {
|
|
27
|
+
Added: 'added',
|
|
28
|
+
Removed: 'removed',
|
|
29
|
+
Modified: 'modified'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfStructuredChangeType(value) {
|
|
32
|
+
for (const key in exports.StructuredChangeType) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.StructuredChangeType, key)) {
|
|
34
|
+
if (exports.StructuredChangeType[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function StructuredChangeTypeFromJSON(json) {
|
|
42
|
+
return StructuredChangeTypeFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function StructuredChangeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function StructuredChangeTypeToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function StructuredChangeTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { StructuredChange } from './StructuredChange';
|
|
13
|
+
/**
|
|
14
|
+
* A key-path diff of two JSON/YAML versions.
|
|
15
|
+
*
|
|
16
|
+
* ``added``/``removed``/``modified`` are full totals; ``changes`` is capped at
|
|
17
|
+
* the engine limit and ``omitted`` reports exactly how many were dropped, so a
|
|
18
|
+
* truncated diff never silently hides a change.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface StructuredDiff
|
|
21
|
+
*/
|
|
22
|
+
export interface StructuredDiff {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {Array<StructuredChange>}
|
|
26
|
+
* @memberof StructuredDiff
|
|
27
|
+
*/
|
|
28
|
+
changes: Array<StructuredChange>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof StructuredDiff
|
|
33
|
+
*/
|
|
34
|
+
added: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof StructuredDiff
|
|
39
|
+
*/
|
|
40
|
+
removed: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof StructuredDiff
|
|
45
|
+
*/
|
|
46
|
+
modified: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof StructuredDiff
|
|
51
|
+
*/
|
|
52
|
+
truncated: boolean;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof StructuredDiff
|
|
57
|
+
*/
|
|
58
|
+
omitted: number;
|
|
59
|
+
}
|
|
60
|
+
export declare const StructuredDiffPropertyValidationAttributesMap: {
|
|
61
|
+
[property: string]: {
|
|
62
|
+
maxLength?: number;
|
|
63
|
+
minLength?: number;
|
|
64
|
+
pattern?: string;
|
|
65
|
+
maximum?: number;
|
|
66
|
+
exclusiveMaximum?: boolean;
|
|
67
|
+
minimum?: number;
|
|
68
|
+
exclusiveMinimum?: boolean;
|
|
69
|
+
multipleOf?: number;
|
|
70
|
+
maxItems?: number;
|
|
71
|
+
minItems?: number;
|
|
72
|
+
uniqueItems?: boolean;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the StructuredDiff interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfStructuredDiff(value: object): value is StructuredDiff;
|
|
79
|
+
export declare function StructuredDiffFromJSON(json: any): StructuredDiff;
|
|
80
|
+
export declare function StructuredDiffFromJSONTyped(json: any, ignoreDiscriminator: boolean): StructuredDiff;
|
|
81
|
+
export declare function StructuredDiffToJSON(json: any): StructuredDiff;
|
|
82
|
+
export declare function StructuredDiffToJSONTyped(value?: StructuredDiff | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.StructuredDiffPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfStructuredDiff = instanceOfStructuredDiff;
|
|
18
|
+
exports.StructuredDiffFromJSON = StructuredDiffFromJSON;
|
|
19
|
+
exports.StructuredDiffFromJSONTyped = StructuredDiffFromJSONTyped;
|
|
20
|
+
exports.StructuredDiffToJSON = StructuredDiffToJSON;
|
|
21
|
+
exports.StructuredDiffToJSONTyped = StructuredDiffToJSONTyped;
|
|
22
|
+
const StructuredChange_1 = require("./StructuredChange");
|
|
23
|
+
exports.StructuredDiffPropertyValidationAttributesMap = {};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the StructuredDiff interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfStructuredDiff(value) {
|
|
28
|
+
if (!('changes' in value) || value['changes'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('added' in value) || value['added'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('removed' in value) || value['removed'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('modified' in value) || value['modified'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('truncated' in value) || value['truncated'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('omitted' in value) || value['omitted'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function StructuredDiffFromJSON(json) {
|
|
43
|
+
return StructuredDiffFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function StructuredDiffFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'changes': (json['changes'].map(StructuredChange_1.StructuredChangeFromJSON)),
|
|
51
|
+
'added': json['added'],
|
|
52
|
+
'removed': json['removed'],
|
|
53
|
+
'modified': json['modified'],
|
|
54
|
+
'truncated': json['truncated'],
|
|
55
|
+
'omitted': json['omitted'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function StructuredDiffToJSON(json) {
|
|
59
|
+
return StructuredDiffToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function StructuredDiffToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'changes': (value['changes'].map(StructuredChange_1.StructuredChangeToJSON)),
|
|
67
|
+
'added': value['added'],
|
|
68
|
+
'removed': value['removed'],
|
|
69
|
+
'modified': value['modified'],
|
|
70
|
+
'truncated': value['truncated'],
|
|
71
|
+
'omitted': value['omitted'],
|
|
72
|
+
};
|
|
73
|
+
}
|