@smartbit4all/ng-client 1.0.8 → 1.0.10
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/view-context/api/model/componentModel.mjs +1 -12
- package/esm2020/lib/view-context/api/model/models.mjs +2 -1
- package/esm2020/lib/view-context/api/model/uiActionRequest.mjs +1 -1
- package/esm2020/lib/view-context/api/model/valueSet.mjs +2 -0
- package/esm2020/lib/view-context/api/model/view.mjs +1 -1
- package/esm2020/lib/view-context/property-definition-data.mjs +2 -0
- package/esm2020/lib/view-context/value-api/api/api.mjs +4 -0
- package/esm2020/lib/view-context/value-api/api/value.service.mjs +138 -0
- package/esm2020/lib/view-context/value-api/api.module.mjs +8 -8
- package/esm2020/lib/view-context/value-api/configuration.mjs +2 -2
- package/esm2020/lib/view-context/value-api/encoder.mjs +19 -0
- package/esm2020/lib/view-context/value-api/index.mjs +7 -6
- package/esm2020/lib/view-context/value-api/model/models.mjs +9 -2
- package/esm2020/lib/view-context/value-api/model/value.mjs +13 -0
- package/esm2020/lib/view-context/value-api/model/valueSetData.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetDefinition.mjs +2 -0
- package/esm2020/lib/view-context/value-api/model/valueSetDefinitionData.mjs +2 -0
- package/esm2020/lib/view-context/value-api/model/valueSetDefinitionKind.mjs +23 -0
- package/esm2020/lib/view-context/value-api/model/valueSetExpression.mjs +2 -0
- package/esm2020/lib/view-context/value-api/model/valueSetOperand.mjs +2 -0
- package/esm2020/lib/view-context/value-api/model/valueSetOperation.mjs +18 -0
- package/fesm2020/smartbit4all-ng-client.mjs +0 -12
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/view-context/api/model/componentModel.d.ts +7 -3
- package/lib/view-context/api/model/models.d.ts +1 -0
- package/lib/view-context/api/model/uiActionRequest.d.ts +1 -0
- package/lib/view-context/api/model/valueSet.d.ts +20 -0
- package/lib/view-context/api/model/view.d.ts +4 -0
- package/lib/view-context/property-definition-data.d.ts +5 -0
- package/lib/view-context/value-api/api/api.d.ts +3 -0
- package/lib/view-context/value-api/api/value.service.d.ts +35 -0
- package/lib/view-context/value-api/api.module.d.ts +3 -3
- package/lib/view-context/value-api/encoder.d.ts +11 -0
- package/lib/view-context/value-api/index.d.ts +6 -5
- package/lib/view-context/value-api/model/models.d.ts +8 -1
- package/lib/view-context/value-api/model/value.d.ts +29 -0
- package/lib/view-context/value-api/model/valueSetData.d.ts +4 -2
- package/lib/view-context/value-api/model/valueSetDefinition.d.ts +16 -0
- package/lib/view-context/value-api/model/valueSetDefinitionData.d.ts +55 -0
- package/lib/view-context/value-api/model/valueSetDefinitionKind.d.ts +23 -0
- package/lib/view-context/value-api/model/valueSetExpression.d.ts +20 -0
- package/lib/view-context/value-api/model/valueSetOperand.d.ts +25 -0
- package/lib/view-context/value-api/model/valueSetOperation.d.ts +18 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.0.10.tgz +0 -0
- package/smartbit4all-ng-client-1.0.8.tgz +0 -0
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { SmartLayoutDefinition } from
|
|
13
|
-
import { ComponentConstraint } from
|
|
14
|
-
import { UiAction } from
|
|
12
|
+
import { SmartLayoutDefinition } from '@smartbit4all/form';
|
|
13
|
+
import { ComponentConstraint } from './componentConstraint';
|
|
14
|
+
import { UiAction } from './uiAction';
|
|
15
|
+
import { ValueSet } from './valueSet';
|
|
15
16
|
/**
|
|
16
17
|
* Model of a UI component. Contains all information in one object, which are needed to render a fully functionin component.
|
|
17
18
|
*/
|
|
@@ -24,6 +25,9 @@ export interface ComponentModel {
|
|
|
24
25
|
[key: string]: SmartLayoutDefinition;
|
|
25
26
|
};
|
|
26
27
|
actions: Array<UiAction>;
|
|
28
|
+
valueSets?: {
|
|
29
|
+
[key: string]: ValueSet;
|
|
30
|
+
};
|
|
27
31
|
/**
|
|
28
32
|
* Complex widgets with corresponding initial model.
|
|
29
33
|
*/
|
|
@@ -18,6 +18,7 @@ export * from './uiActionDialogDescriptor';
|
|
|
18
18
|
export * from './uiActionFeedbackType';
|
|
19
19
|
export * from './uiActionInputType';
|
|
20
20
|
export * from './uiActionRequest';
|
|
21
|
+
export * from './valueSet';
|
|
21
22
|
export * from './view';
|
|
22
23
|
export * from './viewApiError';
|
|
23
24
|
export * from './viewConstraint';
|
|
@@ -14,6 +14,7 @@ export interface UiActionRequest {
|
|
|
14
14
|
* Code of the executed UI action.
|
|
15
15
|
*/
|
|
16
16
|
code: string;
|
|
17
|
+
path?: string;
|
|
17
18
|
/**
|
|
18
19
|
* Identifier of UI element, or UI action, where action is performed (for example treeNode\'s / listItem\'s identifier, etc.). Optional.
|
|
19
20
|
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View API
|
|
3
|
+
* View API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
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 { ValueSetData } from '../../value-api';
|
|
13
|
+
/**
|
|
14
|
+
* An instance of a ValueSetData tied together with a logical timestamp (counter). It can be used as a request item, without specifying valueSetData,
|
|
15
|
+
*/
|
|
16
|
+
export interface ValueSet {
|
|
17
|
+
valueSetName?: string;
|
|
18
|
+
valueSetData?: ValueSetData;
|
|
19
|
+
timestamp?: number;
|
|
20
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ViewState } from './viewState';
|
|
13
13
|
import { UiAction } from './uiAction';
|
|
14
|
+
import { ValueSet } from './valueSet';
|
|
14
15
|
import { ViewType } from './viewType';
|
|
15
16
|
import { ViewConstraint } from './viewConstraint';
|
|
16
17
|
export interface View {
|
|
@@ -37,6 +38,9 @@ export interface View {
|
|
|
37
38
|
widgetModels: {
|
|
38
39
|
[key: string]: object;
|
|
39
40
|
};
|
|
41
|
+
valueSets?: {
|
|
42
|
+
[key: string]: ValueSet;
|
|
43
|
+
};
|
|
40
44
|
keepModelOnImplicitClose?: boolean;
|
|
41
45
|
}
|
|
42
46
|
export declare namespace View {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Value } from '../model/value';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ValueService {
|
|
7
|
+
protected httpClient: HttpClient;
|
|
8
|
+
protected basePath: string;
|
|
9
|
+
defaultHeaders: HttpHeaders;
|
|
10
|
+
configuration: Configuration;
|
|
11
|
+
encoder: HttpParameterCodec;
|
|
12
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
13
|
+
private addToHttpParams;
|
|
14
|
+
private addToHttpParamsRecursive;
|
|
15
|
+
/**
|
|
16
|
+
* Returns the possible value set for the given URI
|
|
17
|
+
* @param objectUri The URI of the field the possible values are requested for
|
|
18
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
19
|
+
* @param reportProgress flag to report request and response progress.
|
|
20
|
+
*/
|
|
21
|
+
possibleValues(objectUri: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
22
|
+
httpHeaderAccept?: 'application/json';
|
|
23
|
+
context?: HttpContext;
|
|
24
|
+
}): Observable<Array<Value>>;
|
|
25
|
+
possibleValues(objectUri: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
26
|
+
httpHeaderAccept?: 'application/json';
|
|
27
|
+
context?: HttpContext;
|
|
28
|
+
}): Observable<HttpResponse<Array<Value>>>;
|
|
29
|
+
possibleValues(objectUri: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
30
|
+
httpHeaderAccept?: 'application/json';
|
|
31
|
+
context?: HttpContext;
|
|
32
|
+
}): Observable<HttpEvent<Array<Value>>>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueService, [null, { optional: true; }, { optional: true; }]>;
|
|
34
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ValueService>;
|
|
35
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ModuleWithProviders } from
|
|
2
|
-
import { Configuration } from
|
|
3
|
-
import { HttpClient } from
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { Configuration } from './configuration';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ApiModule {
|
|
6
6
|
static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpParameterCodec } from '@angular/common/http';
|
|
2
|
+
/**
|
|
3
|
+
* Custom HttpParameterCodec
|
|
4
|
+
* Workaround for https://github.com/angular/angular/issues/18261
|
|
5
|
+
*/
|
|
6
|
+
export declare class CustomHttpParameterCodec implements HttpParameterCodec {
|
|
7
|
+
encodeKey(k: string): string;
|
|
8
|
+
encodeValue(v: string): string;
|
|
9
|
+
decodeKey(k: string): string;
|
|
10
|
+
decodeValue(v: string): string;
|
|
11
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from './api/api';
|
|
2
|
+
export * from './model/models';
|
|
3
|
+
export * from './variables';
|
|
4
|
+
export * from './configuration';
|
|
5
|
+
export * from './api.module';
|
|
6
|
+
export * from './param';
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './value';
|
|
2
|
+
export * from './valueSetData';
|
|
3
|
+
export * from './valueSetDefinition';
|
|
4
|
+
export * from './valueSetDefinitionData';
|
|
5
|
+
export * from './valueSetDefinitionKind';
|
|
6
|
+
export * from './valueSetExpression';
|
|
7
|
+
export * from './valueSetOperand';
|
|
8
|
+
export * from './valueSetOperation';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* value api
|
|
3
|
+
* value api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
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
|
+
export interface Value {
|
|
13
|
+
/**
|
|
14
|
+
* The uri the object of the value can be accessed.
|
|
15
|
+
*/
|
|
16
|
+
objectUri?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The logical code of the selectable value.
|
|
19
|
+
*/
|
|
20
|
+
code?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The string value that can be shown on ui. It might be a label code or the exact label.
|
|
23
|
+
*/
|
|
24
|
+
displayValue?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The code of icon that can be associatied with the value. It may be a uri.
|
|
27
|
+
*/
|
|
28
|
+
iconCode?: string;
|
|
29
|
+
}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { FilterExpressionBuilderModel } from '@smartbit4all/filter';
|
|
13
|
+
import { PropertyDefinitionData } from '../../property-definition-data';
|
|
12
14
|
/**
|
|
13
15
|
* The instance of the ValueSetDefintion that conatins every information inline.
|
|
14
16
|
*/
|
|
@@ -18,7 +20,7 @@ export interface ValueSetData {
|
|
|
18
20
|
* The name of the key property in the value. It will be the value that copied into the reference when a given item is selected from the value set.
|
|
19
21
|
*/
|
|
20
22
|
keyProperty?: string;
|
|
21
|
-
properties: Array<
|
|
23
|
+
properties: Array<PropertyDefinitionData>;
|
|
22
24
|
/**
|
|
23
25
|
* Optional icon code for the given value set.
|
|
24
26
|
*/
|
|
@@ -35,5 +37,5 @@ export interface ValueSetData {
|
|
|
35
37
|
/**
|
|
36
38
|
* The filter expression model for the search from values.
|
|
37
39
|
*/
|
|
38
|
-
filterModel?:
|
|
40
|
+
filterModel?: FilterExpressionBuilderModel;
|
|
39
41
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* value api
|
|
3
|
+
* value api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
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 { ValueSetDefinitionData } from './valueSetDefinitionData';
|
|
13
|
+
export interface ValueSetDefinition {
|
|
14
|
+
uri: string;
|
|
15
|
+
data: ValueSetDefinitionData;
|
|
16
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* value api
|
|
3
|
+
* value api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
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 { ValueSetExpression } from './valueSetExpression';
|
|
13
|
+
import { ValueSetDefinitionKind } from './valueSetDefinitionKind';
|
|
14
|
+
export interface ValueSetDefinitionData {
|
|
15
|
+
kind: ValueSetDefinitionKind;
|
|
16
|
+
/**
|
|
17
|
+
* The logical name of the given value set. In case of an enum it is the fully qualified name of the enum class.
|
|
18
|
+
*/
|
|
19
|
+
qualifiedName: string;
|
|
20
|
+
/**
|
|
21
|
+
* The object definition of the value set.
|
|
22
|
+
*/
|
|
23
|
+
objectDefinition?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The fully qualified name of the type class.
|
|
26
|
+
*/
|
|
27
|
+
typeClass?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The name of the key property in the value. It will be the value that copied into the reference when a given item is selected from the value set. If it is not set then the default is the URI if it exists in the given object. Or it will be the code or id in this order.
|
|
30
|
+
*/
|
|
31
|
+
keyProperty?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The name of the storage schema. Necessary to access the objects or the container (list or map).
|
|
34
|
+
*/
|
|
35
|
+
storageSchema?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The name of the list or map that contains the object uri list. It must be a unique name inside the storageSchema.
|
|
38
|
+
*/
|
|
39
|
+
containerName?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Optional icon code for the given value set.
|
|
42
|
+
*/
|
|
43
|
+
iconCode?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The value list that contains the value objects.
|
|
46
|
+
*/
|
|
47
|
+
inlineValues?: Array<object>;
|
|
48
|
+
/**
|
|
49
|
+
* The list of keys. If we have this
|
|
50
|
+
*/
|
|
51
|
+
keys?: Array<object>;
|
|
52
|
+
expression?: ValueSetExpression;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace ValueSetDefinitionData {
|
|
55
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* value api
|
|
3
|
+
* value api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
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
|
+
export declare type ValueSetDefinitionKind = 'ENUM' | 'INLINE' | 'LIST' | 'MAP' | 'ALLOF' | 'SETOF' | 'SEARCHINDEXBASED' | 'COMPOSITE' | 'UNDEFINED';
|
|
13
|
+
export declare const ValueSetDefinitionKind: {
|
|
14
|
+
Enum: ValueSetDefinitionKind;
|
|
15
|
+
Inline: ValueSetDefinitionKind;
|
|
16
|
+
List: ValueSetDefinitionKind;
|
|
17
|
+
Map: ValueSetDefinitionKind;
|
|
18
|
+
Allof: ValueSetDefinitionKind;
|
|
19
|
+
Setof: ValueSetDefinitionKind;
|
|
20
|
+
Searchindexbased: ValueSetDefinitionKind;
|
|
21
|
+
Composite: ValueSetDefinitionKind;
|
|
22
|
+
Undefined: ValueSetDefinitionKind;
|
|
23
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* value api
|
|
3
|
+
* value api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
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 { ValueSetOperand } from './valueSetOperand';
|
|
13
|
+
import { ValueSetOperation } from './valueSetOperation';
|
|
14
|
+
export interface ValueSetExpression {
|
|
15
|
+
operation: ValueSetOperation;
|
|
16
|
+
ignoreVersion: boolean;
|
|
17
|
+
operands: Array<ValueSetOperand>;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace ValueSetExpression {
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* value api
|
|
3
|
+
* value api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
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 { ValueSetExpression } from './valueSetExpression';
|
|
13
|
+
import { ValueSetDefinitionData } from './valueSetDefinitionData';
|
|
14
|
+
export interface ValueSetOperand {
|
|
15
|
+
/**
|
|
16
|
+
* The namespace of the referred value set.
|
|
17
|
+
*/
|
|
18
|
+
namespace: string;
|
|
19
|
+
/**
|
|
20
|
+
* The name of the referred value set.
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
data?: ValueSetDefinitionData;
|
|
24
|
+
expression?: ValueSetExpression;
|
|
25
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* value api
|
|
3
|
+
* value api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
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
|
+
export declare type ValueSetOperation = 'UNION' | 'INTERSECT' | 'DIF' | 'SYMMETRICDIF';
|
|
13
|
+
export declare const ValueSetOperation: {
|
|
14
|
+
Union: ValueSetOperation;
|
|
15
|
+
Intersect: ValueSetOperation;
|
|
16
|
+
Dif: ValueSetOperation;
|
|
17
|
+
Symmetricdif: ValueSetOperation;
|
|
18
|
+
};
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|