@smartbit4all/ng-client 3.1.93 → 3.1.94
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/esm2020/lib/smart-filter-editor/api/api/filter.service.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/configuration.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/encoder.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBoolOperator.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderApiConfig.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderField.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderGroup.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderModel.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderUiModel.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionData.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionDataType.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionField.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldEditor.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldList.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldWidgetType.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionList.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperandData.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperation.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/param.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/variables.mjs +1 -1
- package/esm2020/lib/smart-form/api/api/api.mjs +1 -1
- package/esm2020/lib/smart-form/api/api/default.service.mjs +1 -1
- package/esm2020/lib/smart-form/api/api.module.mjs +1 -1
- package/esm2020/lib/smart-form/api/configuration.mjs +1 -1
- package/esm2020/lib/smart-form/api/encoder.mjs +1 -1
- package/esm2020/lib/smart-form/api/index.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/models.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/propertyMapping.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/selectionDefinition.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartLayoutDefinition.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartMatrixModel.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
- package/esm2020/lib/smart-form/api/param.mjs +1 -1
- package/esm2020/lib/smart-form/api/variables.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/api/api.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/api/grid.service.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/api.module.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/configuration.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/encoder.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/index.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnContentType.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridDataAccessConfig.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridModel.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridPage.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionMode.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionType.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridServerModel.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridUpdateData.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridView.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/models.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/param.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/variables.mjs +1 -1
- package/esm2020/lib/smart-tree/smarttree-generic.service.mjs +23 -37
- package/esm2020/lib/smart-tree/tree-api/api/tree.service.mjs +549 -3
- package/esm2020/lib/smart-tree/tree-api/configuration.mjs +2 -2
- package/esm2020/lib/smart-tree/tree-api/encoder.mjs +1 -1
- package/esm2020/lib/smart-tree/tree-api/param.mjs +1 -1
- package/esm2020/lib/smart-tree/tree-api/variables.mjs +1 -1
- package/esm2020/lib/view-context/api/api/view.service.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uploadedFile.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContextChange.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewEventHandler.mjs +1 -1
- package/esm2020/lib/view-context/smart-view-context.service.mjs +2 -1
- package/esm2020/lib/view-context/value-api/api/api.mjs +1 -1
- package/esm2020/lib/view-context/value-api/api/value.service.mjs +1 -1
- package/esm2020/lib/view-context/value-api/api.module.mjs +1 -1
- package/esm2020/lib/view-context/value-api/configuration.mjs +1 -1
- package/esm2020/lib/view-context/value-api/encoder.mjs +1 -1
- package/esm2020/lib/view-context/value-api/index.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/genericValue.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/models.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/value.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetData.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetDefinition.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetDefinitionData.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetDefinitionIdentifier.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetDefinitionKind.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetExpression.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetOperand.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetOperation.mjs +1 -1
- package/esm2020/lib/view-context/value-api/param.mjs +1 -1
- package/esm2020/lib/view-context/value-api/variables.mjs +1 -1
- package/fesm2015/smartbit4all-ng-client.mjs +635 -101
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +635 -101
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-tree/tree-api/api/tree.service.d.ts +161 -2
- package/lib/view-context/api/model/viewContextChange.d.ts +4 -0
- package/lib/view-context/smart-view-context.service.d.ts +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.94.tgz +0 -0
- package/src/lib/smart-filter-editor/api/README.md +226 -226
- package/src/lib/smart-form/api/README.md +226 -226
- package/src/lib/smart-grid/api/grid-api/README.md +226 -226
- package/src/lib/smart-tree/tree-api/README.md +226 -226
- package/src/lib/view-context/value-api/README.md +226 -226
- package/smartbit4all-ng-client-3.1.93.tgz +0 -0
|
@@ -3123,6 +3123,7 @@ class SmartViewContextService {
|
|
|
3123
3123
|
if (viewContextChange?.changes) {
|
|
3124
3124
|
this.handleChanges(viewContextChange.changes);
|
|
3125
3125
|
}
|
|
3126
|
+
return viewContextChange?.result;
|
|
3126
3127
|
}
|
|
3127
3128
|
handleChanges(changes) {
|
|
3128
3129
|
changes.forEach((componentModelChange) => {
|
|
@@ -8278,7 +8279,7 @@ class Configuration$3 {
|
|
|
8278
8279
|
// All other styles and Date-formats are probably handled incorrectly.
|
|
8279
8280
|
//
|
|
8280
8281
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
|
8281
|
-
const value = param.dataFormat === 'date-time'
|
|
8282
|
+
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
|
8282
8283
|
? param.value.toISOString()
|
|
8283
8284
|
: param.value;
|
|
8284
8285
|
return encodeURIComponent(String(value));
|
|
@@ -8286,7 +8287,7 @@ class Configuration$3 {
|
|
|
8286
8287
|
}
|
|
8287
8288
|
|
|
8288
8289
|
/**
|
|
8289
|
-
*
|
|
8290
|
+
* Uitree Api
|
|
8290
8291
|
* Tree domain objects
|
|
8291
8292
|
*
|
|
8292
8293
|
* The version of the OpenAPI document: 1.0.0
|
|
@@ -8354,15 +8355,432 @@ class TreeService {
|
|
|
8354
8355
|
}
|
|
8355
8356
|
return httpParams;
|
|
8356
8357
|
}
|
|
8357
|
-
collapseNode(viewUuid, treeId, nodeId, observe = 'body', reportProgress = false, options) {
|
|
8358
|
+
collapseNode(viewUuid, treeId, nodeId, observe = 'body', reportProgress = false, options) {
|
|
8359
|
+
if (viewUuid === null || viewUuid === undefined) {
|
|
8360
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling collapseNode.');
|
|
8361
|
+
}
|
|
8362
|
+
if (treeId === null || treeId === undefined) {
|
|
8363
|
+
throw new Error('Required parameter treeId was null or undefined when calling collapseNode.');
|
|
8364
|
+
}
|
|
8365
|
+
if (nodeId === null || nodeId === undefined) {
|
|
8366
|
+
throw new Error('Required parameter nodeId was null or undefined when calling collapseNode.');
|
|
8367
|
+
}
|
|
8368
|
+
let localVarHeaders = this.defaultHeaders;
|
|
8369
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
8370
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
8371
|
+
// to determine the Accept header
|
|
8372
|
+
const httpHeaderAccepts = ['application/json'];
|
|
8373
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
8374
|
+
}
|
|
8375
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
8376
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
8377
|
+
}
|
|
8378
|
+
let localVarHttpContext = options && options.context;
|
|
8379
|
+
if (localVarHttpContext === undefined) {
|
|
8380
|
+
localVarHttpContext = new HttpContext();
|
|
8381
|
+
}
|
|
8382
|
+
let responseType_ = 'json';
|
|
8383
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
8384
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
8385
|
+
responseType_ = 'text';
|
|
8386
|
+
}
|
|
8387
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
8388
|
+
responseType_ = 'json';
|
|
8389
|
+
}
|
|
8390
|
+
else {
|
|
8391
|
+
responseType_ = 'blob';
|
|
8392
|
+
}
|
|
8393
|
+
}
|
|
8394
|
+
let localVarPath = `/tree/${this.configuration.encodeParam({
|
|
8395
|
+
name: 'viewUuid',
|
|
8396
|
+
value: viewUuid,
|
|
8397
|
+
in: 'path',
|
|
8398
|
+
style: 'simple',
|
|
8399
|
+
explode: false,
|
|
8400
|
+
dataType: 'string',
|
|
8401
|
+
dataFormat: 'uuid',
|
|
8402
|
+
})}/${this.configuration.encodeParam({
|
|
8403
|
+
name: 'treeId',
|
|
8404
|
+
value: treeId,
|
|
8405
|
+
in: 'path',
|
|
8406
|
+
style: 'simple',
|
|
8407
|
+
explode: false,
|
|
8408
|
+
dataType: 'string',
|
|
8409
|
+
dataFormat: undefined,
|
|
8410
|
+
})}/${this.configuration.encodeParam({
|
|
8411
|
+
name: 'nodeId',
|
|
8412
|
+
value: nodeId,
|
|
8413
|
+
in: 'path',
|
|
8414
|
+
style: 'simple',
|
|
8415
|
+
explode: false,
|
|
8416
|
+
dataType: 'string',
|
|
8417
|
+
dataFormat: undefined,
|
|
8418
|
+
})}/collapse`;
|
|
8419
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
8420
|
+
context: localVarHttpContext,
|
|
8421
|
+
responseType: responseType_,
|
|
8422
|
+
withCredentials: this.configuration.withCredentials,
|
|
8423
|
+
headers: localVarHeaders,
|
|
8424
|
+
observe: observe,
|
|
8425
|
+
reportProgress: reportProgress,
|
|
8426
|
+
});
|
|
8427
|
+
}
|
|
8428
|
+
collapseNode2(viewUuid, treeId, nodeId, observe = 'body', reportProgress = false, options) {
|
|
8429
|
+
if (viewUuid === null || viewUuid === undefined) {
|
|
8430
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling collapseNode2.');
|
|
8431
|
+
}
|
|
8432
|
+
if (treeId === null || treeId === undefined) {
|
|
8433
|
+
throw new Error('Required parameter treeId was null or undefined when calling collapseNode2.');
|
|
8434
|
+
}
|
|
8435
|
+
if (nodeId === null || nodeId === undefined) {
|
|
8436
|
+
throw new Error('Required parameter nodeId was null or undefined when calling collapseNode2.');
|
|
8437
|
+
}
|
|
8438
|
+
let localVarHeaders = this.defaultHeaders;
|
|
8439
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
8440
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
8441
|
+
// to determine the Accept header
|
|
8442
|
+
const httpHeaderAccepts = ['application/json'];
|
|
8443
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
8444
|
+
}
|
|
8445
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
8446
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
8447
|
+
}
|
|
8448
|
+
let localVarHttpContext = options && options.context;
|
|
8449
|
+
if (localVarHttpContext === undefined) {
|
|
8450
|
+
localVarHttpContext = new HttpContext();
|
|
8451
|
+
}
|
|
8452
|
+
let responseType_ = 'json';
|
|
8453
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
8454
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
8455
|
+
responseType_ = 'text';
|
|
8456
|
+
}
|
|
8457
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
8458
|
+
responseType_ = 'json';
|
|
8459
|
+
}
|
|
8460
|
+
else {
|
|
8461
|
+
responseType_ = 'blob';
|
|
8462
|
+
}
|
|
8463
|
+
}
|
|
8464
|
+
let localVarPath = `/tree2/${this.configuration.encodeParam({
|
|
8465
|
+
name: 'viewUuid',
|
|
8466
|
+
value: viewUuid,
|
|
8467
|
+
in: 'path',
|
|
8468
|
+
style: 'simple',
|
|
8469
|
+
explode: false,
|
|
8470
|
+
dataType: 'string',
|
|
8471
|
+
dataFormat: 'uuid',
|
|
8472
|
+
})}/${this.configuration.encodeParam({
|
|
8473
|
+
name: 'treeId',
|
|
8474
|
+
value: treeId,
|
|
8475
|
+
in: 'path',
|
|
8476
|
+
style: 'simple',
|
|
8477
|
+
explode: false,
|
|
8478
|
+
dataType: 'string',
|
|
8479
|
+
dataFormat: undefined,
|
|
8480
|
+
})}/${this.configuration.encodeParam({
|
|
8481
|
+
name: 'nodeId',
|
|
8482
|
+
value: nodeId,
|
|
8483
|
+
in: 'path',
|
|
8484
|
+
style: 'simple',
|
|
8485
|
+
explode: false,
|
|
8486
|
+
dataType: 'string',
|
|
8487
|
+
dataFormat: undefined,
|
|
8488
|
+
})}/collapse`;
|
|
8489
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
8490
|
+
context: localVarHttpContext,
|
|
8491
|
+
responseType: responseType_,
|
|
8492
|
+
withCredentials: this.configuration.withCredentials,
|
|
8493
|
+
headers: localVarHeaders,
|
|
8494
|
+
observe: observe,
|
|
8495
|
+
reportProgress: reportProgress,
|
|
8496
|
+
});
|
|
8497
|
+
}
|
|
8498
|
+
expandNode(viewUuid, treeId, nodeId, observe = 'body', reportProgress = false, options) {
|
|
8499
|
+
if (viewUuid === null || viewUuid === undefined) {
|
|
8500
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling expandNode.');
|
|
8501
|
+
}
|
|
8502
|
+
if (treeId === null || treeId === undefined) {
|
|
8503
|
+
throw new Error('Required parameter treeId was null or undefined when calling expandNode.');
|
|
8504
|
+
}
|
|
8505
|
+
if (nodeId === null || nodeId === undefined) {
|
|
8506
|
+
throw new Error('Required parameter nodeId was null or undefined when calling expandNode.');
|
|
8507
|
+
}
|
|
8508
|
+
let localVarHeaders = this.defaultHeaders;
|
|
8509
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
8510
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
8511
|
+
// to determine the Accept header
|
|
8512
|
+
const httpHeaderAccepts = ['application/json'];
|
|
8513
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
8514
|
+
}
|
|
8515
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
8516
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
8517
|
+
}
|
|
8518
|
+
let localVarHttpContext = options && options.context;
|
|
8519
|
+
if (localVarHttpContext === undefined) {
|
|
8520
|
+
localVarHttpContext = new HttpContext();
|
|
8521
|
+
}
|
|
8522
|
+
let responseType_ = 'json';
|
|
8523
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
8524
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
8525
|
+
responseType_ = 'text';
|
|
8526
|
+
}
|
|
8527
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
8528
|
+
responseType_ = 'json';
|
|
8529
|
+
}
|
|
8530
|
+
else {
|
|
8531
|
+
responseType_ = 'blob';
|
|
8532
|
+
}
|
|
8533
|
+
}
|
|
8534
|
+
let localVarPath = `/tree/${this.configuration.encodeParam({
|
|
8535
|
+
name: 'viewUuid',
|
|
8536
|
+
value: viewUuid,
|
|
8537
|
+
in: 'path',
|
|
8538
|
+
style: 'simple',
|
|
8539
|
+
explode: false,
|
|
8540
|
+
dataType: 'string',
|
|
8541
|
+
dataFormat: 'uuid',
|
|
8542
|
+
})}/${this.configuration.encodeParam({
|
|
8543
|
+
name: 'treeId',
|
|
8544
|
+
value: treeId,
|
|
8545
|
+
in: 'path',
|
|
8546
|
+
style: 'simple',
|
|
8547
|
+
explode: false,
|
|
8548
|
+
dataType: 'string',
|
|
8549
|
+
dataFormat: undefined,
|
|
8550
|
+
})}/${this.configuration.encodeParam({
|
|
8551
|
+
name: 'nodeId',
|
|
8552
|
+
value: nodeId,
|
|
8553
|
+
in: 'path',
|
|
8554
|
+
style: 'simple',
|
|
8555
|
+
explode: false,
|
|
8556
|
+
dataType: 'string',
|
|
8557
|
+
dataFormat: undefined,
|
|
8558
|
+
})}/expand`;
|
|
8559
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
8560
|
+
context: localVarHttpContext,
|
|
8561
|
+
responseType: responseType_,
|
|
8562
|
+
withCredentials: this.configuration.withCredentials,
|
|
8563
|
+
headers: localVarHeaders,
|
|
8564
|
+
observe: observe,
|
|
8565
|
+
reportProgress: reportProgress,
|
|
8566
|
+
});
|
|
8567
|
+
}
|
|
8568
|
+
expandNode2(viewUuid, treeId, nodeId, observe = 'body', reportProgress = false, options) {
|
|
8569
|
+
if (viewUuid === null || viewUuid === undefined) {
|
|
8570
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling expandNode2.');
|
|
8571
|
+
}
|
|
8572
|
+
if (treeId === null || treeId === undefined) {
|
|
8573
|
+
throw new Error('Required parameter treeId was null or undefined when calling expandNode2.');
|
|
8574
|
+
}
|
|
8575
|
+
if (nodeId === null || nodeId === undefined) {
|
|
8576
|
+
throw new Error('Required parameter nodeId was null or undefined when calling expandNode2.');
|
|
8577
|
+
}
|
|
8578
|
+
let localVarHeaders = this.defaultHeaders;
|
|
8579
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
8580
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
8581
|
+
// to determine the Accept header
|
|
8582
|
+
const httpHeaderAccepts = ['application/json'];
|
|
8583
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
8584
|
+
}
|
|
8585
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
8586
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
8587
|
+
}
|
|
8588
|
+
let localVarHttpContext = options && options.context;
|
|
8589
|
+
if (localVarHttpContext === undefined) {
|
|
8590
|
+
localVarHttpContext = new HttpContext();
|
|
8591
|
+
}
|
|
8592
|
+
let responseType_ = 'json';
|
|
8593
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
8594
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
8595
|
+
responseType_ = 'text';
|
|
8596
|
+
}
|
|
8597
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
8598
|
+
responseType_ = 'json';
|
|
8599
|
+
}
|
|
8600
|
+
else {
|
|
8601
|
+
responseType_ = 'blob';
|
|
8602
|
+
}
|
|
8603
|
+
}
|
|
8604
|
+
let localVarPath = `/tree2/${this.configuration.encodeParam({
|
|
8605
|
+
name: 'viewUuid',
|
|
8606
|
+
value: viewUuid,
|
|
8607
|
+
in: 'path',
|
|
8608
|
+
style: 'simple',
|
|
8609
|
+
explode: false,
|
|
8610
|
+
dataType: 'string',
|
|
8611
|
+
dataFormat: 'uuid',
|
|
8612
|
+
})}/${this.configuration.encodeParam({
|
|
8613
|
+
name: 'treeId',
|
|
8614
|
+
value: treeId,
|
|
8615
|
+
in: 'path',
|
|
8616
|
+
style: 'simple',
|
|
8617
|
+
explode: false,
|
|
8618
|
+
dataType: 'string',
|
|
8619
|
+
dataFormat: undefined,
|
|
8620
|
+
})}/${this.configuration.encodeParam({
|
|
8621
|
+
name: 'nodeId',
|
|
8622
|
+
value: nodeId,
|
|
8623
|
+
in: 'path',
|
|
8624
|
+
style: 'simple',
|
|
8625
|
+
explode: false,
|
|
8626
|
+
dataType: 'string',
|
|
8627
|
+
dataFormat: undefined,
|
|
8628
|
+
})}/expand`;
|
|
8629
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
8630
|
+
context: localVarHttpContext,
|
|
8631
|
+
responseType: responseType_,
|
|
8632
|
+
withCredentials: this.configuration.withCredentials,
|
|
8633
|
+
headers: localVarHeaders,
|
|
8634
|
+
observe: observe,
|
|
8635
|
+
reportProgress: reportProgress,
|
|
8636
|
+
});
|
|
8637
|
+
}
|
|
8638
|
+
getChildrenNodes(viewUuid, treeId, nodeId, observe = 'body', reportProgress = false, options) {
|
|
8639
|
+
if (viewUuid === null || viewUuid === undefined) {
|
|
8640
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling getChildrenNodes.');
|
|
8641
|
+
}
|
|
8642
|
+
if (treeId === null || treeId === undefined) {
|
|
8643
|
+
throw new Error('Required parameter treeId was null or undefined when calling getChildrenNodes.');
|
|
8644
|
+
}
|
|
8645
|
+
if (nodeId === null || nodeId === undefined) {
|
|
8646
|
+
throw new Error('Required parameter nodeId was null or undefined when calling getChildrenNodes.');
|
|
8647
|
+
}
|
|
8648
|
+
let localVarHeaders = this.defaultHeaders;
|
|
8649
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
8650
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
8651
|
+
// to determine the Accept header
|
|
8652
|
+
const httpHeaderAccepts = ['application/json'];
|
|
8653
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
8654
|
+
}
|
|
8655
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
8656
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
8657
|
+
}
|
|
8658
|
+
let localVarHttpContext = options && options.context;
|
|
8659
|
+
if (localVarHttpContext === undefined) {
|
|
8660
|
+
localVarHttpContext = new HttpContext();
|
|
8661
|
+
}
|
|
8662
|
+
let responseType_ = 'json';
|
|
8663
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
8664
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
8665
|
+
responseType_ = 'text';
|
|
8666
|
+
}
|
|
8667
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
8668
|
+
responseType_ = 'json';
|
|
8669
|
+
}
|
|
8670
|
+
else {
|
|
8671
|
+
responseType_ = 'blob';
|
|
8672
|
+
}
|
|
8673
|
+
}
|
|
8674
|
+
let localVarPath = `/tree/${this.configuration.encodeParam({
|
|
8675
|
+
name: 'viewUuid',
|
|
8676
|
+
value: viewUuid,
|
|
8677
|
+
in: 'path',
|
|
8678
|
+
style: 'simple',
|
|
8679
|
+
explode: false,
|
|
8680
|
+
dataType: 'string',
|
|
8681
|
+
dataFormat: 'uuid',
|
|
8682
|
+
})}/${this.configuration.encodeParam({
|
|
8683
|
+
name: 'treeId',
|
|
8684
|
+
value: treeId,
|
|
8685
|
+
in: 'path',
|
|
8686
|
+
style: 'simple',
|
|
8687
|
+
explode: false,
|
|
8688
|
+
dataType: 'string',
|
|
8689
|
+
dataFormat: undefined,
|
|
8690
|
+
})}/${this.configuration.encodeParam({
|
|
8691
|
+
name: 'nodeId',
|
|
8692
|
+
value: nodeId,
|
|
8693
|
+
in: 'path',
|
|
8694
|
+
style: 'simple',
|
|
8695
|
+
explode: false,
|
|
8696
|
+
dataType: 'string',
|
|
8697
|
+
dataFormat: undefined,
|
|
8698
|
+
})}`;
|
|
8699
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
8700
|
+
context: localVarHttpContext,
|
|
8701
|
+
responseType: responseType_,
|
|
8702
|
+
withCredentials: this.configuration.withCredentials,
|
|
8703
|
+
headers: localVarHeaders,
|
|
8704
|
+
observe: observe,
|
|
8705
|
+
reportProgress: reportProgress,
|
|
8706
|
+
});
|
|
8707
|
+
}
|
|
8708
|
+
getChildrenNodes2(viewUuid, treeId, nodeId, observe = 'body', reportProgress = false, options) {
|
|
8709
|
+
if (viewUuid === null || viewUuid === undefined) {
|
|
8710
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling getChildrenNodes2.');
|
|
8711
|
+
}
|
|
8712
|
+
if (treeId === null || treeId === undefined) {
|
|
8713
|
+
throw new Error('Required parameter treeId was null or undefined when calling getChildrenNodes2.');
|
|
8714
|
+
}
|
|
8715
|
+
if (nodeId === null || nodeId === undefined) {
|
|
8716
|
+
throw new Error('Required parameter nodeId was null or undefined when calling getChildrenNodes2.');
|
|
8717
|
+
}
|
|
8718
|
+
let localVarHeaders = this.defaultHeaders;
|
|
8719
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
8720
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
8721
|
+
// to determine the Accept header
|
|
8722
|
+
const httpHeaderAccepts = ['application/json'];
|
|
8723
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
8724
|
+
}
|
|
8725
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
8726
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
8727
|
+
}
|
|
8728
|
+
let localVarHttpContext = options && options.context;
|
|
8729
|
+
if (localVarHttpContext === undefined) {
|
|
8730
|
+
localVarHttpContext = new HttpContext();
|
|
8731
|
+
}
|
|
8732
|
+
let responseType_ = 'json';
|
|
8733
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
8734
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
8735
|
+
responseType_ = 'text';
|
|
8736
|
+
}
|
|
8737
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
8738
|
+
responseType_ = 'json';
|
|
8739
|
+
}
|
|
8740
|
+
else {
|
|
8741
|
+
responseType_ = 'blob';
|
|
8742
|
+
}
|
|
8743
|
+
}
|
|
8744
|
+
let localVarPath = `/tree2/${this.configuration.encodeParam({
|
|
8745
|
+
name: 'viewUuid',
|
|
8746
|
+
value: viewUuid,
|
|
8747
|
+
in: 'path',
|
|
8748
|
+
style: 'simple',
|
|
8749
|
+
explode: false,
|
|
8750
|
+
dataType: 'string',
|
|
8751
|
+
dataFormat: 'uuid',
|
|
8752
|
+
})}/${this.configuration.encodeParam({
|
|
8753
|
+
name: 'treeId',
|
|
8754
|
+
value: treeId,
|
|
8755
|
+
in: 'path',
|
|
8756
|
+
style: 'simple',
|
|
8757
|
+
explode: false,
|
|
8758
|
+
dataType: 'string',
|
|
8759
|
+
dataFormat: undefined,
|
|
8760
|
+
})}/${this.configuration.encodeParam({
|
|
8761
|
+
name: 'nodeId',
|
|
8762
|
+
value: nodeId,
|
|
8763
|
+
in: 'path',
|
|
8764
|
+
style: 'simple',
|
|
8765
|
+
explode: false,
|
|
8766
|
+
dataType: 'string',
|
|
8767
|
+
dataFormat: undefined,
|
|
8768
|
+
})}`;
|
|
8769
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
8770
|
+
context: localVarHttpContext,
|
|
8771
|
+
responseType: responseType_,
|
|
8772
|
+
withCredentials: this.configuration.withCredentials,
|
|
8773
|
+
headers: localVarHeaders,
|
|
8774
|
+
observe: observe,
|
|
8775
|
+
reportProgress: reportProgress,
|
|
8776
|
+
});
|
|
8777
|
+
}
|
|
8778
|
+
getMainActions(viewUuid, treeId, observe = 'body', reportProgress = false, options) {
|
|
8358
8779
|
if (viewUuid === null || viewUuid === undefined) {
|
|
8359
|
-
throw new Error('Required parameter viewUuid was null or undefined when calling
|
|
8780
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling getMainActions.');
|
|
8360
8781
|
}
|
|
8361
8782
|
if (treeId === null || treeId === undefined) {
|
|
8362
|
-
throw new Error('Required parameter treeId was null or undefined when calling
|
|
8363
|
-
}
|
|
8364
|
-
if (nodeId === null || nodeId === undefined) {
|
|
8365
|
-
throw new Error('Required parameter nodeId was null or undefined when calling collapseNode.');
|
|
8783
|
+
throw new Error('Required parameter treeId was null or undefined when calling getMainActions.');
|
|
8366
8784
|
}
|
|
8367
8785
|
let localVarHeaders = this.defaultHeaders;
|
|
8368
8786
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
@@ -8406,16 +8824,8 @@ class TreeService {
|
|
|
8406
8824
|
explode: false,
|
|
8407
8825
|
dataType: 'string',
|
|
8408
8826
|
dataFormat: undefined,
|
|
8409
|
-
})}
|
|
8410
|
-
|
|
8411
|
-
value: nodeId,
|
|
8412
|
-
in: 'path',
|
|
8413
|
-
style: 'simple',
|
|
8414
|
-
explode: false,
|
|
8415
|
-
dataType: 'string',
|
|
8416
|
-
dataFormat: undefined,
|
|
8417
|
-
})}/collapse`;
|
|
8418
|
-
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
8827
|
+
})}/action`;
|
|
8828
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
8419
8829
|
context: localVarHttpContext,
|
|
8420
8830
|
responseType: responseType_,
|
|
8421
8831
|
withCredentials: this.configuration.withCredentials,
|
|
@@ -8424,15 +8834,12 @@ class TreeService {
|
|
|
8424
8834
|
reportProgress: reportProgress,
|
|
8425
8835
|
});
|
|
8426
8836
|
}
|
|
8427
|
-
|
|
8837
|
+
getMainActions2(viewUuid, treeId, observe = 'body', reportProgress = false, options) {
|
|
8428
8838
|
if (viewUuid === null || viewUuid === undefined) {
|
|
8429
|
-
throw new Error('Required parameter viewUuid was null or undefined when calling
|
|
8839
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling getMainActions2.');
|
|
8430
8840
|
}
|
|
8431
8841
|
if (treeId === null || treeId === undefined) {
|
|
8432
|
-
throw new Error('Required parameter treeId was null or undefined when calling
|
|
8433
|
-
}
|
|
8434
|
-
if (nodeId === null || nodeId === undefined) {
|
|
8435
|
-
throw new Error('Required parameter nodeId was null or undefined when calling expandNode.');
|
|
8842
|
+
throw new Error('Required parameter treeId was null or undefined when calling getMainActions2.');
|
|
8436
8843
|
}
|
|
8437
8844
|
let localVarHeaders = this.defaultHeaders;
|
|
8438
8845
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
@@ -8460,7 +8867,7 @@ class TreeService {
|
|
|
8460
8867
|
responseType_ = 'blob';
|
|
8461
8868
|
}
|
|
8462
8869
|
}
|
|
8463
|
-
let localVarPath = `/
|
|
8870
|
+
let localVarPath = `/tree2/${this.configuration.encodeParam({
|
|
8464
8871
|
name: 'viewUuid',
|
|
8465
8872
|
value: viewUuid,
|
|
8466
8873
|
in: 'path',
|
|
@@ -8476,16 +8883,8 @@ class TreeService {
|
|
|
8476
8883
|
explode: false,
|
|
8477
8884
|
dataType: 'string',
|
|
8478
8885
|
dataFormat: undefined,
|
|
8479
|
-
})}
|
|
8480
|
-
|
|
8481
|
-
value: nodeId,
|
|
8482
|
-
in: 'path',
|
|
8483
|
-
style: 'simple',
|
|
8484
|
-
explode: false,
|
|
8485
|
-
dataType: 'string',
|
|
8486
|
-
dataFormat: undefined,
|
|
8487
|
-
})}/expand`;
|
|
8488
|
-
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
8886
|
+
})}/action`;
|
|
8887
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
8489
8888
|
context: localVarHttpContext,
|
|
8490
8889
|
responseType: responseType_,
|
|
8491
8890
|
withCredentials: this.configuration.withCredentials,
|
|
@@ -8494,15 +8893,12 @@ class TreeService {
|
|
|
8494
8893
|
reportProgress: reportProgress,
|
|
8495
8894
|
});
|
|
8496
8895
|
}
|
|
8497
|
-
|
|
8896
|
+
getRootNodes(viewUuid, treeId, observe = 'body', reportProgress = false, options) {
|
|
8498
8897
|
if (viewUuid === null || viewUuid === undefined) {
|
|
8499
|
-
throw new Error('Required parameter viewUuid was null or undefined when calling
|
|
8898
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling getRootNodes.');
|
|
8500
8899
|
}
|
|
8501
8900
|
if (treeId === null || treeId === undefined) {
|
|
8502
|
-
throw new Error('Required parameter treeId was null or undefined when calling
|
|
8503
|
-
}
|
|
8504
|
-
if (nodeId === null || nodeId === undefined) {
|
|
8505
|
-
throw new Error('Required parameter nodeId was null or undefined when calling getChildrenNodes.');
|
|
8901
|
+
throw new Error('Required parameter treeId was null or undefined when calling getRootNodes.');
|
|
8506
8902
|
}
|
|
8507
8903
|
let localVarHeaders = this.defaultHeaders;
|
|
8508
8904
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
@@ -8546,14 +8942,6 @@ class TreeService {
|
|
|
8546
8942
|
explode: false,
|
|
8547
8943
|
dataType: 'string',
|
|
8548
8944
|
dataFormat: undefined,
|
|
8549
|
-
})}/${this.configuration.encodeParam({
|
|
8550
|
-
name: 'nodeId',
|
|
8551
|
-
value: nodeId,
|
|
8552
|
-
in: 'path',
|
|
8553
|
-
style: 'simple',
|
|
8554
|
-
explode: false,
|
|
8555
|
-
dataType: 'string',
|
|
8556
|
-
dataFormat: undefined,
|
|
8557
8945
|
})}`;
|
|
8558
8946
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
8559
8947
|
context: localVarHttpContext,
|
|
@@ -8564,12 +8952,12 @@ class TreeService {
|
|
|
8564
8952
|
reportProgress: reportProgress,
|
|
8565
8953
|
});
|
|
8566
8954
|
}
|
|
8567
|
-
|
|
8955
|
+
getRootNodes2(viewUuid, treeId, observe = 'body', reportProgress = false, options) {
|
|
8568
8956
|
if (viewUuid === null || viewUuid === undefined) {
|
|
8569
|
-
throw new Error('Required parameter viewUuid was null or undefined when calling
|
|
8957
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling getRootNodes2.');
|
|
8570
8958
|
}
|
|
8571
8959
|
if (treeId === null || treeId === undefined) {
|
|
8572
|
-
throw new Error('Required parameter treeId was null or undefined when calling
|
|
8960
|
+
throw new Error('Required parameter treeId was null or undefined when calling getRootNodes2.');
|
|
8573
8961
|
}
|
|
8574
8962
|
let localVarHeaders = this.defaultHeaders;
|
|
8575
8963
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
@@ -8597,7 +8985,7 @@ class TreeService {
|
|
|
8597
8985
|
responseType_ = 'blob';
|
|
8598
8986
|
}
|
|
8599
8987
|
}
|
|
8600
|
-
let localVarPath = `/
|
|
8988
|
+
let localVarPath = `/tree2/${this.configuration.encodeParam({
|
|
8601
8989
|
name: 'viewUuid',
|
|
8602
8990
|
value: viewUuid,
|
|
8603
8991
|
in: 'path',
|
|
@@ -8613,7 +9001,7 @@ class TreeService {
|
|
|
8613
9001
|
explode: false,
|
|
8614
9002
|
dataType: 'string',
|
|
8615
9003
|
dataFormat: undefined,
|
|
8616
|
-
})}
|
|
9004
|
+
})}`;
|
|
8617
9005
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
8618
9006
|
context: localVarHttpContext,
|
|
8619
9007
|
responseType: responseType_,
|
|
@@ -8623,12 +9011,18 @@ class TreeService {
|
|
|
8623
9011
|
reportProgress: reportProgress,
|
|
8624
9012
|
});
|
|
8625
9013
|
}
|
|
8626
|
-
|
|
9014
|
+
performAction(viewUuid, treeId, nodeId, body, observe = 'body', reportProgress = false, options) {
|
|
8627
9015
|
if (viewUuid === null || viewUuid === undefined) {
|
|
8628
|
-
throw new Error('Required parameter viewUuid was null or undefined when calling
|
|
9016
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling performAction.');
|
|
8629
9017
|
}
|
|
8630
9018
|
if (treeId === null || treeId === undefined) {
|
|
8631
|
-
throw new Error('Required parameter treeId was null or undefined when calling
|
|
9019
|
+
throw new Error('Required parameter treeId was null or undefined when calling performAction.');
|
|
9020
|
+
}
|
|
9021
|
+
if (nodeId === null || nodeId === undefined) {
|
|
9022
|
+
throw new Error('Required parameter nodeId was null or undefined when calling performAction.');
|
|
9023
|
+
}
|
|
9024
|
+
if (body === null || body === undefined) {
|
|
9025
|
+
throw new Error('Required parameter body was null or undefined when calling performAction.');
|
|
8632
9026
|
}
|
|
8633
9027
|
let localVarHeaders = this.defaultHeaders;
|
|
8634
9028
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
@@ -8644,6 +9038,12 @@ class TreeService {
|
|
|
8644
9038
|
if (localVarHttpContext === undefined) {
|
|
8645
9039
|
localVarHttpContext = new HttpContext();
|
|
8646
9040
|
}
|
|
9041
|
+
// to determine the Content-Type header
|
|
9042
|
+
const consumes = ['application/json'];
|
|
9043
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
9044
|
+
if (httpContentTypeSelected !== undefined) {
|
|
9045
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
9046
|
+
}
|
|
8647
9047
|
let responseType_ = 'json';
|
|
8648
9048
|
if (localVarHttpHeaderAcceptSelected) {
|
|
8649
9049
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -8672,9 +9072,18 @@ class TreeService {
|
|
|
8672
9072
|
explode: false,
|
|
8673
9073
|
dataType: 'string',
|
|
8674
9074
|
dataFormat: undefined,
|
|
8675
|
-
})}
|
|
8676
|
-
|
|
9075
|
+
})}/${this.configuration.encodeParam({
|
|
9076
|
+
name: 'nodeId',
|
|
9077
|
+
value: nodeId,
|
|
9078
|
+
in: 'path',
|
|
9079
|
+
style: 'simple',
|
|
9080
|
+
explode: false,
|
|
9081
|
+
dataType: 'string',
|
|
9082
|
+
dataFormat: undefined,
|
|
9083
|
+
})}/action`;
|
|
9084
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
8677
9085
|
context: localVarHttpContext,
|
|
9086
|
+
body: body,
|
|
8678
9087
|
responseType: responseType_,
|
|
8679
9088
|
withCredentials: this.configuration.withCredentials,
|
|
8680
9089
|
headers: localVarHeaders,
|
|
@@ -8682,18 +9091,18 @@ class TreeService {
|
|
|
8682
9091
|
reportProgress: reportProgress,
|
|
8683
9092
|
});
|
|
8684
9093
|
}
|
|
8685
|
-
|
|
9094
|
+
performAction2(viewUuid, treeId, nodeId, body, observe = 'body', reportProgress = false, options) {
|
|
8686
9095
|
if (viewUuid === null || viewUuid === undefined) {
|
|
8687
|
-
throw new Error('Required parameter viewUuid was null or undefined when calling
|
|
9096
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling performAction2.');
|
|
8688
9097
|
}
|
|
8689
9098
|
if (treeId === null || treeId === undefined) {
|
|
8690
|
-
throw new Error('Required parameter treeId was null or undefined when calling
|
|
9099
|
+
throw new Error('Required parameter treeId was null or undefined when calling performAction2.');
|
|
8691
9100
|
}
|
|
8692
9101
|
if (nodeId === null || nodeId === undefined) {
|
|
8693
|
-
throw new Error('Required parameter nodeId was null or undefined when calling
|
|
9102
|
+
throw new Error('Required parameter nodeId was null or undefined when calling performAction2.');
|
|
8694
9103
|
}
|
|
8695
9104
|
if (body === null || body === undefined) {
|
|
8696
|
-
throw new Error('Required parameter body was null or undefined when calling
|
|
9105
|
+
throw new Error('Required parameter body was null or undefined when calling performAction2.');
|
|
8697
9106
|
}
|
|
8698
9107
|
let localVarHeaders = this.defaultHeaders;
|
|
8699
9108
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
@@ -8727,7 +9136,7 @@ class TreeService {
|
|
|
8727
9136
|
responseType_ = 'blob';
|
|
8728
9137
|
}
|
|
8729
9138
|
}
|
|
8730
|
-
let localVarPath = `/
|
|
9139
|
+
let localVarPath = `/tree2/${this.configuration.encodeParam({
|
|
8731
9140
|
name: 'viewUuid',
|
|
8732
9141
|
value: viewUuid,
|
|
8733
9142
|
in: 'path',
|
|
@@ -8831,6 +9240,75 @@ class TreeService {
|
|
|
8831
9240
|
reportProgress: reportProgress,
|
|
8832
9241
|
});
|
|
8833
9242
|
}
|
|
9243
|
+
performMainAction2(viewUuid, treeId, body, observe = 'body', reportProgress = false, options) {
|
|
9244
|
+
if (viewUuid === null || viewUuid === undefined) {
|
|
9245
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling performMainAction2.');
|
|
9246
|
+
}
|
|
9247
|
+
if (treeId === null || treeId === undefined) {
|
|
9248
|
+
throw new Error('Required parameter treeId was null or undefined when calling performMainAction2.');
|
|
9249
|
+
}
|
|
9250
|
+
if (body === null || body === undefined) {
|
|
9251
|
+
throw new Error('Required parameter body was null or undefined when calling performMainAction2.');
|
|
9252
|
+
}
|
|
9253
|
+
let localVarHeaders = this.defaultHeaders;
|
|
9254
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
9255
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
9256
|
+
// to determine the Accept header
|
|
9257
|
+
const httpHeaderAccepts = ['application/json'];
|
|
9258
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
9259
|
+
}
|
|
9260
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
9261
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
9262
|
+
}
|
|
9263
|
+
let localVarHttpContext = options && options.context;
|
|
9264
|
+
if (localVarHttpContext === undefined) {
|
|
9265
|
+
localVarHttpContext = new HttpContext();
|
|
9266
|
+
}
|
|
9267
|
+
// to determine the Content-Type header
|
|
9268
|
+
const consumes = ['application/json'];
|
|
9269
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
9270
|
+
if (httpContentTypeSelected !== undefined) {
|
|
9271
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
9272
|
+
}
|
|
9273
|
+
let responseType_ = 'json';
|
|
9274
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
9275
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
9276
|
+
responseType_ = 'text';
|
|
9277
|
+
}
|
|
9278
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
9279
|
+
responseType_ = 'json';
|
|
9280
|
+
}
|
|
9281
|
+
else {
|
|
9282
|
+
responseType_ = 'blob';
|
|
9283
|
+
}
|
|
9284
|
+
}
|
|
9285
|
+
let localVarPath = `/tree2/${this.configuration.encodeParam({
|
|
9286
|
+
name: 'viewUuid',
|
|
9287
|
+
value: viewUuid,
|
|
9288
|
+
in: 'path',
|
|
9289
|
+
style: 'simple',
|
|
9290
|
+
explode: false,
|
|
9291
|
+
dataType: 'string',
|
|
9292
|
+
dataFormat: 'uuid',
|
|
9293
|
+
})}/${this.configuration.encodeParam({
|
|
9294
|
+
name: 'treeId',
|
|
9295
|
+
value: treeId,
|
|
9296
|
+
in: 'path',
|
|
9297
|
+
style: 'simple',
|
|
9298
|
+
explode: false,
|
|
9299
|
+
dataType: 'string',
|
|
9300
|
+
dataFormat: undefined,
|
|
9301
|
+
})}/action`;
|
|
9302
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
9303
|
+
context: localVarHttpContext,
|
|
9304
|
+
body: body,
|
|
9305
|
+
responseType: responseType_,
|
|
9306
|
+
withCredentials: this.configuration.withCredentials,
|
|
9307
|
+
headers: localVarHeaders,
|
|
9308
|
+
observe: observe,
|
|
9309
|
+
reportProgress: reportProgress,
|
|
9310
|
+
});
|
|
9311
|
+
}
|
|
8834
9312
|
selectNode(viewUuid, treeId, nodeId, observe = 'body', reportProgress = false, options) {
|
|
8835
9313
|
if (viewUuid === null || viewUuid === undefined) {
|
|
8836
9314
|
throw new Error('Required parameter viewUuid was null or undefined when calling selectNode.');
|
|
@@ -8901,6 +9379,76 @@ class TreeService {
|
|
|
8901
9379
|
reportProgress: reportProgress,
|
|
8902
9380
|
});
|
|
8903
9381
|
}
|
|
9382
|
+
selectNode2(viewUuid, treeId, nodeId, observe = 'body', reportProgress = false, options) {
|
|
9383
|
+
if (viewUuid === null || viewUuid === undefined) {
|
|
9384
|
+
throw new Error('Required parameter viewUuid was null or undefined when calling selectNode2.');
|
|
9385
|
+
}
|
|
9386
|
+
if (treeId === null || treeId === undefined) {
|
|
9387
|
+
throw new Error('Required parameter treeId was null or undefined when calling selectNode2.');
|
|
9388
|
+
}
|
|
9389
|
+
if (nodeId === null || nodeId === undefined) {
|
|
9390
|
+
throw new Error('Required parameter nodeId was null or undefined when calling selectNode2.');
|
|
9391
|
+
}
|
|
9392
|
+
let localVarHeaders = this.defaultHeaders;
|
|
9393
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
9394
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
9395
|
+
// to determine the Accept header
|
|
9396
|
+
const httpHeaderAccepts = ['application/json'];
|
|
9397
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
9398
|
+
}
|
|
9399
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
9400
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
9401
|
+
}
|
|
9402
|
+
let localVarHttpContext = options && options.context;
|
|
9403
|
+
if (localVarHttpContext === undefined) {
|
|
9404
|
+
localVarHttpContext = new HttpContext();
|
|
9405
|
+
}
|
|
9406
|
+
let responseType_ = 'json';
|
|
9407
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
9408
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
9409
|
+
responseType_ = 'text';
|
|
9410
|
+
}
|
|
9411
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
9412
|
+
responseType_ = 'json';
|
|
9413
|
+
}
|
|
9414
|
+
else {
|
|
9415
|
+
responseType_ = 'blob';
|
|
9416
|
+
}
|
|
9417
|
+
}
|
|
9418
|
+
let localVarPath = `/tree2/${this.configuration.encodeParam({
|
|
9419
|
+
name: 'viewUuid',
|
|
9420
|
+
value: viewUuid,
|
|
9421
|
+
in: 'path',
|
|
9422
|
+
style: 'simple',
|
|
9423
|
+
explode: false,
|
|
9424
|
+
dataType: 'string',
|
|
9425
|
+
dataFormat: 'uuid',
|
|
9426
|
+
})}/${this.configuration.encodeParam({
|
|
9427
|
+
name: 'treeId',
|
|
9428
|
+
value: treeId,
|
|
9429
|
+
in: 'path',
|
|
9430
|
+
style: 'simple',
|
|
9431
|
+
explode: false,
|
|
9432
|
+
dataType: 'string',
|
|
9433
|
+
dataFormat: undefined,
|
|
9434
|
+
})}/${this.configuration.encodeParam({
|
|
9435
|
+
name: 'nodeId',
|
|
9436
|
+
value: nodeId,
|
|
9437
|
+
in: 'path',
|
|
9438
|
+
style: 'simple',
|
|
9439
|
+
explode: false,
|
|
9440
|
+
dataType: 'string',
|
|
9441
|
+
dataFormat: undefined,
|
|
9442
|
+
})}/select`;
|
|
9443
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
9444
|
+
context: localVarHttpContext,
|
|
9445
|
+
responseType: responseType_,
|
|
9446
|
+
withCredentials: this.configuration.withCredentials,
|
|
9447
|
+
headers: localVarHeaders,
|
|
9448
|
+
observe: observe,
|
|
9449
|
+
reportProgress: reportProgress,
|
|
9450
|
+
});
|
|
9451
|
+
}
|
|
8904
9452
|
}
|
|
8905
9453
|
TreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TreeService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$3, optional: true }, { token: Configuration$3, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8906
9454
|
TreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TreeService, providedIn: 'root' });
|
|
@@ -9013,8 +9561,8 @@ class SmarttreeGenericService extends SmarttreeService {
|
|
|
9013
9561
|
}
|
|
9014
9562
|
async downloadTree() {
|
|
9015
9563
|
let uuid = this.viewContext.getUuidOfPage(this.pageName);
|
|
9016
|
-
const rootNodes = await this.service.
|
|
9017
|
-
const uiActions = await this.service.
|
|
9564
|
+
const rootNodes = await this.viewContext.handlePerformActionResponse(await this.service.getRootNodes2(uuid, this.treeId).toPromise());
|
|
9565
|
+
const uiActions = await this.viewContext.handlePerformActionResponse(await this.service.getMainActions2(uuid, this.treeId).toPromise());
|
|
9018
9566
|
if (uiActions) {
|
|
9019
9567
|
this.constructUiActionModels(uiActions);
|
|
9020
9568
|
}
|
|
@@ -9025,9 +9573,7 @@ class SmarttreeGenericService extends SmarttreeService {
|
|
|
9025
9573
|
}
|
|
9026
9574
|
async downloadChildren(parentNode) {
|
|
9027
9575
|
let uuid = this.viewContext.getUuidOfPage(this.pageName);
|
|
9028
|
-
const children = await this.service
|
|
9029
|
-
.getChildrenNodes(uuid, this.treeId, parentNode.identifier)
|
|
9030
|
-
.toPromise();
|
|
9576
|
+
const children = await this.viewContext.handlePerformActionResponse(await this.service.getChildrenNodes2(uuid, this.treeId, parentNode.identifier).toPromise());
|
|
9031
9577
|
if (!children) {
|
|
9032
9578
|
throw new Error(`Node with identifier ${parentNode.identifier} does not have children.`);
|
|
9033
9579
|
}
|
|
@@ -9036,15 +9582,11 @@ class SmarttreeGenericService extends SmarttreeService {
|
|
|
9036
9582
|
async onTreeNodeOpen(treeNode) {
|
|
9037
9583
|
let viewUuid = this.viewContext.getUuidOfPage(this.pageName);
|
|
9038
9584
|
if (treeNode?.expanded) {
|
|
9039
|
-
let tempTreeNode = await this.service
|
|
9040
|
-
.collapseNode(viewUuid, this.treeId, treeNode.identifier)
|
|
9041
|
-
.toPromise();
|
|
9585
|
+
let tempTreeNode = await this.viewContext.handlePerformActionResponse(await this.service.collapseNode2(viewUuid, this.treeId, treeNode.identifier).toPromise());
|
|
9042
9586
|
treeNode = tempTreeNode;
|
|
9043
9587
|
}
|
|
9044
9588
|
else if (!treeNode?.expanded) {
|
|
9045
|
-
let tempTreeNode = await this.service
|
|
9046
|
-
.expandNode(viewUuid, this.treeId, treeNode?.identifier)
|
|
9047
|
-
.toPromise();
|
|
9589
|
+
let tempTreeNode = await this.viewContext.handlePerformActionResponse(await this.service.expandNode2(viewUuid, this.treeId, treeNode?.identifier).toPromise());
|
|
9048
9590
|
treeNode = tempTreeNode;
|
|
9049
9591
|
}
|
|
9050
9592
|
let node = this.deepSearchTreeNode(treeNode?.identifier, this.treeFromBackend);
|
|
@@ -9057,25 +9599,21 @@ class SmarttreeGenericService extends SmarttreeService {
|
|
|
9057
9599
|
}
|
|
9058
9600
|
async selectFolder(folderUri, treeNode) {
|
|
9059
9601
|
let viewUuid = this.viewContext.getUuidOfPage(this.pageName);
|
|
9060
|
-
await this.service
|
|
9061
|
-
|
|
9062
|
-
.
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
treeNode = updatedTreeNode;
|
|
9076
|
-
this.syncTree();
|
|
9077
|
-
this.viewContext.getAndSyncViewContext(this.viewContext.getUuidOfPage(this.viewContextName));
|
|
9078
|
-
});
|
|
9602
|
+
let updatedTreeNode = await this.viewContext.handlePerformActionResponse(await this.service.selectNode2(viewUuid, this.treeId, treeNode.identifier).toPromise());
|
|
9603
|
+
if (this.selectedNode) {
|
|
9604
|
+
this.selectedNode.selected = false;
|
|
9605
|
+
}
|
|
9606
|
+
this.selectedNode = updatedTreeNode;
|
|
9607
|
+
let node = this.deepSearchTreeNode(updatedTreeNode?.identifier, this.treeFromBackend);
|
|
9608
|
+
if (!node) {
|
|
9609
|
+
throw Error('Tree node does not exist');
|
|
9610
|
+
}
|
|
9611
|
+
node.expanded = updatedTreeNode?.expanded;
|
|
9612
|
+
node.childrenNodes = updatedTreeNode?.childrenNodes;
|
|
9613
|
+
node.selected = updatedTreeNode?.selected;
|
|
9614
|
+
treeNode = updatedTreeNode;
|
|
9615
|
+
this.syncTree();
|
|
9616
|
+
this.viewContext.getAndSyncViewContext(this.viewContext.getUuidOfPage(this.viewContextName));
|
|
9079
9617
|
}
|
|
9080
9618
|
async updateTreeOnTheFly() {
|
|
9081
9619
|
await this.initialize();
|
|
@@ -9225,15 +9763,11 @@ class SmarttreeGenericService extends SmarttreeService {
|
|
|
9225
9763
|
let nodeId = uiActionRequest.params['nodeUuid'];
|
|
9226
9764
|
delete uiActionRequest.params['nodeUuid'];
|
|
9227
9765
|
let viewUuid = this.viewContext.getUuidOfPage(this.pageName);
|
|
9228
|
-
this.treeFromBackend = await this.service
|
|
9229
|
-
.performAction(viewUuid, this.treeId, nodeId, uiActionRequest)
|
|
9230
|
-
.toPromise();
|
|
9766
|
+
this.treeFromBackend = await this.viewContext.handlePerformActionResponse(await this.service.performAction2(viewUuid, this.treeId, nodeId, uiActionRequest).toPromise());
|
|
9231
9767
|
}
|
|
9232
9768
|
async performMainUiActionRequest(uiActionRequest) {
|
|
9233
9769
|
let viewUuid = this.viewContext.getUuidOfPage(this.pageName);
|
|
9234
|
-
this.treeFromBackend = await this.service
|
|
9235
|
-
.performMainAction(viewUuid, this.treeId, uiActionRequest)
|
|
9236
|
-
.toPromise();
|
|
9770
|
+
this.treeFromBackend = await this.viewContext.handlePerformActionResponse(await this.service.performMainAction2(viewUuid, this.treeId, uiActionRequest).toPromise());
|
|
9237
9771
|
}
|
|
9238
9772
|
handleSpecificDemandsAsynchronously(uiAction, uiActionRequest) {
|
|
9239
9773
|
throw new Error('Method not implemented.');
|