@techextensor/tab-core-utility 2.2.197 → 2.2.199
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/esm2022/index.mjs +12 -10
- package/esm2022/lib/tab-core-utility/app/constants/api-constants.mjs +3 -11
- package/esm2022/lib/tab-core-utility/app/constants/common.mjs +16 -1
- package/esm2022/lib/tab-core-utility/app/crud/tab-blueprint.service.mjs +12 -39
- package/esm2022/lib/tab-core-utility/app/crud/tab-crud.service.mjs +14 -18
- package/esm2022/lib/tab-core-utility/app/crud/tab-delete.service.mjs +8 -12
- package/esm2022/lib/tab-core-utility/app/crud/tab-formio.service.mjs +3 -3
- package/esm2022/lib/tab-core-utility/app/crud/tab-get.service.mjs +56 -200
- package/esm2022/lib/tab-core-utility/app/crud/tab-insert.service.mjs +5 -6
- package/esm2022/lib/tab-core-utility/app/crud/tab-release.service.mjs +9 -20
- package/esm2022/lib/tab-core-utility/app/crud/tab-update.service.mjs +30 -16
- package/esm2022/lib/tab-core-utility/app/enums/common.enum.mjs +12 -1
- package/esm2022/lib/tab-core-utility/app/enums/dsq.enum.mjs +13 -13
- package/esm2022/lib/tab-core-utility/app/helpers/common/app.helpers.mjs +6 -7
- package/esm2022/lib/tab-core-utility/app/helpers/common/meta-data.helpers.mjs +6 -2
- package/esm2022/lib/tab-core-utility/app/helpers/common/req-res.helpers.mjs +9 -21
- package/esm2022/lib/tab-core-utility/app/helpers/common/where-clause.helpers.mjs +8 -53
- package/esm2022/lib/tab-core-utility/app/helpers/screen/grid.helpers.mjs +6 -90
- package/esm2022/lib/tab-core-utility/app/helpers/screen/screen.helpers.mjs +1 -9
- package/esm2022/lib/tab-core-utility/app/interfaces/release.interface.mjs +7 -0
- package/esm2022/lib/tab-core-utility/app/models/api-query.class.mjs +36 -64
- package/esm2022/lib/tab-core-utility/app/models/app-object.class.mjs +1 -27
- package/esm2022/lib/tab-core-utility/app/models/data-source-queries.class.mjs +1 -22
- package/esm2022/lib/tab-core-utility/app/models/data-source-query.model.mjs +4 -4
- package/esm2022/lib/tab-core-utility/app/models/filter.model.mjs +16 -18
- package/esm2022/lib/tab-core-utility/app/models/sort.model.mjs +9 -13
- package/esm2022/lib/tab-core-utility/app/utils/filter.util.mjs +3 -3
- package/esm2022/lib/tab-core-utility/app/utils/req-res.util.mjs +9 -10
- package/esm2022/lib/tab-core-utility/app/utils/select-query.util.mjs +107 -0
- package/esm2022/lib/tab-core-utility/app/utils/tab-app.util.mjs +8 -5
- package/index.d.ts +11 -1
- package/lib/tab-core-utility/app/constants/api-constants.d.ts +2 -6
- package/lib/tab-core-utility/app/constants/common.d.ts +15 -1
- package/lib/tab-core-utility/app/crud/tab-blueprint.service.d.ts +0 -16
- package/lib/tab-core-utility/app/crud/tab-crud.service.d.ts +1 -1
- package/lib/tab-core-utility/app/crud/tab-get.service.d.ts +16 -67
- package/lib/tab-core-utility/app/crud/tab-release.service.d.ts +5 -12
- package/lib/tab-core-utility/app/crud/tab-update.service.d.ts +3 -1
- package/lib/tab-core-utility/app/enums/common.enum.d.ts +9 -0
- package/lib/tab-core-utility/app/enums/dsq.enum.d.ts +2 -2
- package/lib/tab-core-utility/app/helpers/common/app.helpers.d.ts +4 -1
- package/lib/tab-core-utility/app/helpers/common/meta-data.helpers.d.ts +1 -0
- package/lib/tab-core-utility/app/helpers/common/req-res.helpers.d.ts +0 -17
- package/lib/tab-core-utility/app/helpers/common/where-clause.helpers.d.ts +0 -18
- package/lib/tab-core-utility/app/helpers/screen/grid.helpers.d.ts +0 -53
- package/lib/tab-core-utility/app/helpers/screen/screen.helpers.d.ts +0 -6
- package/lib/tab-core-utility/app/interfaces/release.interface.d.ts +85 -0
- package/lib/tab-core-utility/app/models/api-query.class.d.ts +84 -94
- package/lib/tab-core-utility/app/models/app-object.class.d.ts +2 -65
- package/lib/tab-core-utility/app/models/data-source-queries.class.d.ts +2 -71
- package/lib/tab-core-utility/app/models/filter.model.d.ts +9 -11
- package/lib/tab-core-utility/app/models/sort.model.d.ts +5 -7
- package/lib/tab-core-utility/app/utils/filter.util.d.ts +2 -2
- package/lib/tab-core-utility/app/utils/req-res.util.d.ts +3 -7
- package/lib/tab-core-utility/app/utils/select-query.util.d.ts +24 -0
- package/lib/tab-core-utility/app/utils/tab-app.util.d.ts +3 -3
- package/package.json +1 -1
- package/esm2022/lib/tab-core-utility/app/enums/workflow.enum.mjs +0 -37
- package/lib/tab-core-utility/app/enums/workflow.enum.d.ts +0 -30
|
@@ -1,119 +1,109 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { JoinType
|
|
1
|
+
import { ConjunctionClause, RelationalOperator, FilterValueType, SortDirection, DataSourceQueryFilterFieldType } from '../enums/dsq.enum';
|
|
2
|
+
import { JoinType } from '../enums/query.enum';
|
|
3
3
|
import { LookUpDetails } from './data-source-queries.class';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Values: APIValueSets[];
|
|
13
|
-
}
|
|
14
|
-
export declare class APIUpdateQuery extends APIQuery {
|
|
15
|
-
Values: APIValueSets[];
|
|
16
|
-
}
|
|
17
|
-
export declare class APIDeleteQuery extends APIQuery {
|
|
18
|
-
}
|
|
19
|
-
export declare class APISelectQuery extends APIQuery {
|
|
20
|
-
ResultField_AppfieldIds: string[];
|
|
21
|
-
Sort: APISort[];
|
|
22
|
-
Distinct: boolean;
|
|
23
|
-
NoLock: boolean;
|
|
24
|
-
TopCount?: number;
|
|
25
|
-
LoadLookUpValues: boolean;
|
|
26
|
-
}
|
|
27
|
-
export declare class JoinDetails {
|
|
28
|
-
JoinType: JoinType | any;
|
|
29
|
-
Relationship: ChildRelationShip | any;
|
|
4
|
+
/**
|
|
5
|
+
* Runtime parameter (caller-provided input resolved from reqtokens).
|
|
6
|
+
*/
|
|
7
|
+
export declare class APIParameter {
|
|
8
|
+
id?: string;
|
|
9
|
+
fieldName: string | any;
|
|
10
|
+
mappingFieldName: string | any;
|
|
11
|
+
isMandatory?: boolean;
|
|
30
12
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Pagination configuration.
|
|
15
|
+
*/
|
|
16
|
+
export declare class APIPager {
|
|
17
|
+
pageNumber: number | any;
|
|
18
|
+
pageSize: number | any;
|
|
19
|
+
returnTotalCount?: boolean;
|
|
38
20
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Single sort criterion.
|
|
23
|
+
*/
|
|
24
|
+
export declare class APISort {
|
|
25
|
+
id?: string;
|
|
26
|
+
fieldName: string | any;
|
|
27
|
+
direction: SortDirection | any;
|
|
28
|
+
sequence?: number;
|
|
43
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Single filter condition.
|
|
32
|
+
*/
|
|
44
33
|
export declare class APIFilter {
|
|
45
|
-
|
|
34
|
+
id?: string;
|
|
46
35
|
fieldName: string | any;
|
|
47
36
|
operator: RelationalOperator | any;
|
|
48
37
|
valueType: FilterValueType | any;
|
|
49
|
-
value:
|
|
50
|
-
|
|
51
|
-
groupId
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
AppFieldID: string | any;
|
|
56
|
-
Value: string | any;
|
|
57
|
-
}
|
|
58
|
-
export declare class APIBulkInsertFieldsValueSets {
|
|
59
|
-
Fields: string | any;
|
|
60
|
-
Value: string | any;
|
|
61
|
-
}
|
|
62
|
-
export declare class APISort {
|
|
63
|
-
ID: string | any;
|
|
64
|
-
FieldID: string | any;
|
|
65
|
-
SortSequence: SortSequence | any;
|
|
66
|
-
Sequence: number | any;
|
|
38
|
+
value: any;
|
|
39
|
+
conjunction: ConjunctionClause | any;
|
|
40
|
+
groupId?: number;
|
|
41
|
+
sequence?: number;
|
|
42
|
+
fieldType?: DataSourceQueryFilterFieldType;
|
|
43
|
+
lookUpDetail?: string;
|
|
67
44
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Filter criteria container — used by whereClause and havingClause.
|
|
47
|
+
* `filterLogic` numbers reference Filter.groupId (e.g. "[1] AND ([2] OR [3])").
|
|
48
|
+
* `sqlQuery` is QB-only and optional.
|
|
49
|
+
*/
|
|
50
|
+
export declare class APIFilterCriteria {
|
|
51
|
+
filters: APIFilter[];
|
|
52
|
+
filterLogic?: string;
|
|
53
|
+
sqlQuery?: string;
|
|
73
54
|
}
|
|
74
55
|
/**
|
|
75
|
-
*
|
|
76
|
-
* Used for the new microservice-based select query endpoint
|
|
56
|
+
* Explicit join clause (beyond auto-detected lookup joins).
|
|
77
57
|
*/
|
|
78
|
-
export declare class
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
Distinct?: boolean;
|
|
85
|
-
Sort?: CRUDSort[];
|
|
58
|
+
export declare class APIJoin {
|
|
59
|
+
joinType: JoinType | any;
|
|
60
|
+
targetEntity: string | any;
|
|
61
|
+
sourceField: string | any;
|
|
62
|
+
targetField: string | any;
|
|
63
|
+
additionalConditions?: APIFilter[];
|
|
86
64
|
}
|
|
87
65
|
/**
|
|
88
|
-
*
|
|
66
|
+
* Child relationship metadata. Used by AppObjectModel.ChildRelationShips.
|
|
67
|
+
* Kept as a separate concept from APIJoin (relationship metadata vs explicit join).
|
|
89
68
|
*/
|
|
90
|
-
export declare class
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
69
|
+
export declare class ChildRelationShip {
|
|
70
|
+
RelSourceObjectID: string | any;
|
|
71
|
+
RelSourceFieldID: string | any;
|
|
72
|
+
RelTargetObjectID: string | any;
|
|
73
|
+
RelTargetFieldID: string | any;
|
|
74
|
+
LocalId: string;
|
|
75
|
+
childDetails: LookUpDetails;
|
|
94
76
|
}
|
|
95
77
|
/**
|
|
96
|
-
*
|
|
78
|
+
* Base query shape — shared between Select / Update / Delete payloads.
|
|
97
79
|
*/
|
|
98
|
-
export declare class
|
|
99
|
-
|
|
80
|
+
export declare class APIQuery {
|
|
81
|
+
entityName?: string;
|
|
82
|
+
whereClause?: APIFilterCriteria;
|
|
83
|
+
joins?: APIJoin[];
|
|
100
84
|
}
|
|
101
85
|
/**
|
|
102
|
-
*
|
|
86
|
+
* SELECT query payload — the wire shape sent to /Queries/select.
|
|
87
|
+
* Carries all 13 query dimensions per QUERY_CONFIGURATION_STRUCTURE.
|
|
103
88
|
*/
|
|
104
|
-
export declare class
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
89
|
+
export declare class APISelectQuery extends APIQuery {
|
|
90
|
+
selectedFields?: string[];
|
|
91
|
+
includes?: string[];
|
|
92
|
+
parameters?: APIParameter[];
|
|
93
|
+
sort?: APISort[];
|
|
94
|
+
topCount?: number;
|
|
95
|
+
pager?: APIPager;
|
|
96
|
+
distinct?: boolean;
|
|
97
|
+
noLock?: boolean;
|
|
98
|
+
loadLookUpValues?: boolean;
|
|
99
|
+
groupBy?: string[];
|
|
100
|
+
aggregateFields?: Record<string, string>;
|
|
101
|
+
havingClause?: APIFilterCriteria;
|
|
112
102
|
}
|
|
113
103
|
/**
|
|
114
|
-
*
|
|
104
|
+
* Bulk-insert value sets — kept as-is (no CRUD equivalent).
|
|
115
105
|
*/
|
|
116
|
-
export declare class
|
|
117
|
-
|
|
118
|
-
|
|
106
|
+
export declare class APIBulkInsertFieldsValueSets {
|
|
107
|
+
Fields: string | any;
|
|
108
|
+
Value: string | any;
|
|
119
109
|
}
|
|
@@ -1,48 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ChildRelationShip } from './api-query.class';
|
|
4
|
-
import { Configurations, EmailTemplate, Profile, Resources, Role } from './common.class';
|
|
5
|
-
import { AppFields, DataSourceQueries, FieldAccess } from './data-source-queries.class';
|
|
6
|
-
export declare class Application {
|
|
7
|
-
ID: string | any;
|
|
8
|
-
AppName: string | any;
|
|
9
|
-
DisplayName: string | any;
|
|
10
|
-
PlatformVersion: string | any;
|
|
11
|
-
AppVersion: string | any;
|
|
12
|
-
Description: string | any;
|
|
13
|
-
AppObjects: AppObject[];
|
|
14
|
-
AppScreens: AppScreen[];
|
|
15
|
-
AppMenus: AppMenu[];
|
|
16
|
-
AppConfigurations: Configurations[];
|
|
17
|
-
Roles?: Role[];
|
|
18
|
-
Profiles?: Profile[];
|
|
19
|
-
WorkFlows: any[];
|
|
20
|
-
Plugins: any[];
|
|
21
|
-
}
|
|
22
|
-
export declare class AppObject {
|
|
23
|
-
ID: string | any;
|
|
24
|
-
ObjectName: string | any;
|
|
25
|
-
DisplayName: string | any;
|
|
26
|
-
Description: string | any;
|
|
27
|
-
EnableTracking: boolean | false;
|
|
28
|
-
AllowSearchable: boolean | false;
|
|
29
|
-
CreationType: ObjectCreationType | any;
|
|
30
|
-
AllowReports: boolean | false;
|
|
31
|
-
AllowActivities: boolean | false;
|
|
32
|
-
AllowSharing: boolean | false;
|
|
33
|
-
DeploymentStatus: DeploymentStatus | any;
|
|
34
|
-
Fields: AppFields[];
|
|
35
|
-
ChildRelationShips: ChildRelationShip[];
|
|
36
|
-
DataSourceQueries: DataSourceQueries[];
|
|
37
|
-
SystemDBTableName: string | any;
|
|
38
|
-
AccessList: ObjectAccess[];
|
|
39
|
-
EmailTemplates: EmailTemplate[];
|
|
40
|
-
Resources: Resources[];
|
|
41
|
-
IsSystem: boolean | false;
|
|
42
|
-
IsVisible: boolean | false;
|
|
43
|
-
IsDeprecated: boolean | false;
|
|
44
|
-
ObjectID_Tosave: string | any;
|
|
45
|
-
}
|
|
1
|
+
import { DataAccessSet } from '../enums/permission.enum';
|
|
2
|
+
import { FieldAccess } from './data-source-queries.class';
|
|
46
3
|
export declare class ObjectAccess {
|
|
47
4
|
ID: string;
|
|
48
5
|
RoleID: string;
|
|
@@ -55,23 +12,3 @@ export declare class ObjectAccess {
|
|
|
55
12
|
fieldAccesses: Array<FieldAccess>;
|
|
56
13
|
ObjectID: string;
|
|
57
14
|
}
|
|
58
|
-
export declare class AppMenu {
|
|
59
|
-
ID: string | any;
|
|
60
|
-
MenuName: string | any;
|
|
61
|
-
DisplayName: string | any;
|
|
62
|
-
ScreenID: string | any;
|
|
63
|
-
ShortCut: string | any;
|
|
64
|
-
Icon: string | any;
|
|
65
|
-
ParentID?: number;
|
|
66
|
-
Sequence?: number;
|
|
67
|
-
Url: string | any;
|
|
68
|
-
}
|
|
69
|
-
export declare class AppScreen {
|
|
70
|
-
ID: string | any;
|
|
71
|
-
Name: string | any;
|
|
72
|
-
Description: string | any;
|
|
73
|
-
DataSourceQuery: DataSourceQueries | any;
|
|
74
|
-
Container: string | any;
|
|
75
|
-
ScreenType: number | any;
|
|
76
|
-
DataSourceQueryID: string | any;
|
|
77
|
-
}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
import { DataTypes } from '../enums/controllers.enum';
|
|
2
|
-
import {
|
|
3
|
-
import { AppObject } from './app-object.class';
|
|
4
|
-
export declare class DataSourceQueries {
|
|
5
|
-
ID: string;
|
|
6
|
-
ObjectID: AppObject;
|
|
7
|
-
ObjectID_Tosave: string;
|
|
8
|
-
QueryName: string;
|
|
9
|
-
DisplayName: string;
|
|
10
|
-
Fields: DataSourceQueries_Fields[];
|
|
11
|
-
Filters: FilterCriteria;
|
|
12
|
-
Sort: Sort[];
|
|
13
|
-
Parameters: Parameters[];
|
|
14
|
-
}
|
|
2
|
+
import { RelationalOperator, DataSourceQueryFieldType } from '../enums/dsq.enum';
|
|
15
3
|
export declare class DataSourceQueries_Fields {
|
|
16
4
|
ID: string;
|
|
17
|
-
Field:
|
|
5
|
+
Field: any;
|
|
18
6
|
SeqNo: number;
|
|
19
7
|
Field_GridAttributes: string;
|
|
20
8
|
LookupDetails: string;
|
|
@@ -22,52 +10,6 @@ export declare class DataSourceQueries_Fields {
|
|
|
22
10
|
FieldDetails: string;
|
|
23
11
|
AppFieldID: string;
|
|
24
12
|
}
|
|
25
|
-
export declare class Parameters {
|
|
26
|
-
ID: string;
|
|
27
|
-
ParameterName: string;
|
|
28
|
-
DataSourceQueryID: string;
|
|
29
|
-
MappingFieldName: string;
|
|
30
|
-
}
|
|
31
|
-
export declare class Sort {
|
|
32
|
-
ID: string;
|
|
33
|
-
SortSequence: SortSequence;
|
|
34
|
-
Sequence: number;
|
|
35
|
-
}
|
|
36
|
-
export declare class FilterCriteria {
|
|
37
|
-
Filters: Filter;
|
|
38
|
-
FilterLogic: string;
|
|
39
|
-
}
|
|
40
|
-
export declare class Filter {
|
|
41
|
-
ID: string;
|
|
42
|
-
ConjuctionClause: ConjuctionClause;
|
|
43
|
-
RelationalOperator: RelationalOperator;
|
|
44
|
-
ValueType: any;
|
|
45
|
-
value: string;
|
|
46
|
-
Sequence: number;
|
|
47
|
-
GroupID: number;
|
|
48
|
-
}
|
|
49
|
-
export declare class AppFields {
|
|
50
|
-
ID: string;
|
|
51
|
-
ObjectID: AppObject;
|
|
52
|
-
FieldName: string;
|
|
53
|
-
DisplayName: string;
|
|
54
|
-
FieldType: FieldType;
|
|
55
|
-
Description: string;
|
|
56
|
-
CreationType: ObjectCreationType;
|
|
57
|
-
IsRequired: boolean;
|
|
58
|
-
IsUnique: boolean;
|
|
59
|
-
IsSearchable: boolean;
|
|
60
|
-
IsConfidential: boolean;
|
|
61
|
-
SystemDBFieldName: string;
|
|
62
|
-
IsSystem: boolean;
|
|
63
|
-
IsVisible: boolean;
|
|
64
|
-
IsDeprecated: boolean;
|
|
65
|
-
LookUpDetails: LookUpDetails;
|
|
66
|
-
AccessList: FieldAccess[];
|
|
67
|
-
Data: string;
|
|
68
|
-
IsPrimaryKey: boolean;
|
|
69
|
-
Field: AppFields;
|
|
70
|
-
}
|
|
71
13
|
export declare class FieldType {
|
|
72
14
|
DataType: DataTypes;
|
|
73
15
|
RelationalOperator: RelationalOperator[];
|
|
@@ -83,14 +25,3 @@ export declare class FieldAccess {
|
|
|
83
25
|
IsVisible: boolean;
|
|
84
26
|
IsReadOnly: boolean;
|
|
85
27
|
}
|
|
86
|
-
export declare class UpdateQueryParameter {
|
|
87
|
-
FieldName: string;
|
|
88
|
-
FieldValue: string | number;
|
|
89
|
-
}
|
|
90
|
-
export declare class ScreenParameter {
|
|
91
|
-
event: any;
|
|
92
|
-
formJson: any;
|
|
93
|
-
formIOObject: any;
|
|
94
|
-
serviceList: any;
|
|
95
|
-
dailogRef: any;
|
|
96
|
-
}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConjunctionClause, DataSourceQueryFilterFieldType, FilterValueType, RelationalOperator } from "../enums/dsq.enum";
|
|
2
2
|
export declare class FilterModel {
|
|
3
3
|
private readonly raw;
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
4
|
+
readonly Id: string;
|
|
5
|
+
readonly FieldName: string;
|
|
6
|
+
readonly Operator: RelationalOperator;
|
|
7
7
|
readonly ValueType: FilterValueType;
|
|
8
|
-
readonly
|
|
8
|
+
readonly Value: any;
|
|
9
|
+
readonly Conjunction: ConjunctionClause;
|
|
10
|
+
readonly GroupId: number;
|
|
9
11
|
readonly Sequence: number;
|
|
10
|
-
readonly GroupID: number;
|
|
11
|
-
readonly LookupDetail: string | null;
|
|
12
12
|
readonly FieldType: DataSourceQueryFilterFieldType;
|
|
13
|
-
readonly
|
|
13
|
+
readonly LookUpDetail: string | null;
|
|
14
14
|
constructor(raw: any);
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @returns A JSON representation in old format.
|
|
16
|
+
* Emits the stored Filter shape (PascalCase per QUERY_CONFIGURATION_STRUCTURE).
|
|
19
17
|
*/
|
|
20
18
|
toJSON(): any;
|
|
21
19
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SortDirection } from "../enums/dsq.enum";
|
|
2
2
|
export declare class SortModel {
|
|
3
3
|
private readonly raw;
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
4
|
+
readonly Id: string;
|
|
5
|
+
readonly FieldName: string;
|
|
6
|
+
readonly Direction: SortDirection;
|
|
6
7
|
readonly Sequence: number;
|
|
7
|
-
readonly LookupDetails: string | null;
|
|
8
|
-
readonly FieldType: DataSourceQueryFilterFieldType;
|
|
9
|
-
readonly AppFieldID: string;
|
|
10
8
|
constructor(raw: any);
|
|
11
9
|
/**
|
|
12
|
-
*
|
|
10
|
+
* Emits the stored Sort shape (PascalCase per QUERY_CONFIGURATION_STRUCTURE).
|
|
13
11
|
*/
|
|
14
12
|
toJSON(): any;
|
|
15
13
|
}
|
|
@@ -9,13 +9,13 @@ export declare function getFilterValueTypeInString(type: number): string;
|
|
|
9
9
|
* @param type The conjunction clause type.
|
|
10
10
|
* @returns The conjunction clause name.
|
|
11
11
|
*/
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function getConjunctionClauseName(type: number): string;
|
|
13
13
|
/**
|
|
14
14
|
* Returns the conjunction clause value based on the type.
|
|
15
15
|
* @param type The conjunction clause name.
|
|
16
16
|
* @returns The conjunction clause value.
|
|
17
17
|
*/
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function getConjunctionClause(type: string): number;
|
|
19
19
|
/**
|
|
20
20
|
* Returns the filter type based on the element.
|
|
21
21
|
* @param element The filter element.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
-
import { AppObject } from '../models/app-object.class';
|
|
1
|
+
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
3
2
|
/**
|
|
4
3
|
* Delete a key from the response object
|
|
5
4
|
*
|
|
@@ -31,12 +30,9 @@ export declare function removeMultiplePrimaryKey(response: any, fields: any): an
|
|
|
31
30
|
*/
|
|
32
31
|
export declare function getHeaders(headers?: any): any;
|
|
33
32
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* @param appObject - The AppObject
|
|
37
|
-
* @returns AppFields[] | null - The array of primary key fields or null
|
|
33
|
+
* Build HttpParams from a plain object, omitting undefined/null values.
|
|
38
34
|
*/
|
|
39
|
-
export declare function
|
|
35
|
+
export declare function getParams(obj?: object): HttpParams;
|
|
40
36
|
/**
|
|
41
37
|
* Get the edit record ID from the response object
|
|
42
38
|
*
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { APIFilter, APIFilterCriteria, APISelectQuery } from '../models/api-query.class';
|
|
2
|
+
/**
|
|
3
|
+
* Converts a stored DSQ Configuration JSON (PascalCase storage shape per
|
|
4
|
+
* QUERY_CONFIGURATION_STRUCTURE) to the lowercase APISelectQuery wire shape.
|
|
5
|
+
*
|
|
6
|
+
* Strict — input must follow the new contract exactly:
|
|
7
|
+
* { EntityName, SelectedFields, Includes, Parameters, WhereClause: { Filters, FilterLogic },
|
|
8
|
+
* Sort, TopCount, Pager: { PageNumber, PageSize }, Distinct, NoLock, LoadLookUpValues,
|
|
9
|
+
* GroupBy, AggregateFields, HavingClause, Joins }
|
|
10
|
+
*
|
|
11
|
+
* Use at the boundary between BE-stored metadata and FE wire payload — e.g. when invoking
|
|
12
|
+
* selectExecutor with a Configuration blob fetched from BE, or with a `LookUpDetails.selectQuery`
|
|
13
|
+
* literal stored in metadata.
|
|
14
|
+
*/
|
|
15
|
+
export declare function parseStoredConfigurationToSelectQuery(config: any): APISelectQuery;
|
|
16
|
+
/**
|
|
17
|
+
* Parses a stored FilterCriteria { Filters, FilterLogic, SQLQuery? } (PascalCase)
|
|
18
|
+
* into the lowercase APIFilterCriteria wire shape.
|
|
19
|
+
*/
|
|
20
|
+
export declare function parseFilterCriteria(raw: any): APIFilterCriteria;
|
|
21
|
+
/**
|
|
22
|
+
* Parses a stored Filter (PascalCase per new contract) into the lowercase APIFilter wire shape.
|
|
23
|
+
*/
|
|
24
|
+
export declare function parseFilter(f: any): APIFilter;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AppObjectModel } from '../models/app-object.model';
|
|
2
2
|
/**
|
|
3
3
|
* Synchronize AppObject fields with the response
|
|
4
4
|
*
|
|
5
5
|
* @param response - The response object
|
|
6
|
-
* @param appObject - The
|
|
6
|
+
* @param appObject - The AppObjectModel
|
|
7
7
|
* @returns any - The synchronized response object
|
|
8
8
|
*/
|
|
9
|
-
export declare function syncAppObjectFields(response: any, appObject:
|
|
9
|
+
export declare function syncAppObjectFields(response: any, appObject: AppObjectModel | null | undefined): any;
|
package/package.json
CHANGED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export var WorkFlowTriggerType;
|
|
2
|
-
(function (WorkFlowTriggerType) {
|
|
3
|
-
WorkFlowTriggerType[WorkFlowTriggerType["EventBased"] = 1] = "EventBased";
|
|
4
|
-
WorkFlowTriggerType[WorkFlowTriggerType["DateBased"] = 2] = "DateBased";
|
|
5
|
-
})(WorkFlowTriggerType || (WorkFlowTriggerType = {}));
|
|
6
|
-
export var WorkFlowEventExecution_WorkFlowTriggerEvent;
|
|
7
|
-
(function (WorkFlowEventExecution_WorkFlowTriggerEvent) {
|
|
8
|
-
WorkFlowEventExecution_WorkFlowTriggerEvent[WorkFlowEventExecution_WorkFlowTriggerEvent["Created"] = 1] = "Created";
|
|
9
|
-
WorkFlowEventExecution_WorkFlowTriggerEvent[WorkFlowEventExecution_WorkFlowTriggerEvent["Edited"] = 2] = "Edited";
|
|
10
|
-
WorkFlowEventExecution_WorkFlowTriggerEvent[WorkFlowEventExecution_WorkFlowTriggerEvent["CreatedOrEdited"] = 3] = "CreatedOrEdited";
|
|
11
|
-
WorkFlowEventExecution_WorkFlowTriggerEvent[WorkFlowEventExecution_WorkFlowTriggerEvent["Deleted"] = 4] = "Deleted";
|
|
12
|
-
})(WorkFlowEventExecution_WorkFlowTriggerEvent || (WorkFlowEventExecution_WorkFlowTriggerEvent = {}));
|
|
13
|
-
export var WorkFlowEventExecution_WorkFlowTriggerFieldCriteria;
|
|
14
|
-
(function (WorkFlowEventExecution_WorkFlowTriggerFieldCriteria) {
|
|
15
|
-
WorkFlowEventExecution_WorkFlowTriggerFieldCriteria[WorkFlowEventExecution_WorkFlowTriggerFieldCriteria["WhenAnyFieldIsUpdated"] = 1] = "WhenAnyFieldIsUpdated";
|
|
16
|
-
WorkFlowEventExecution_WorkFlowTriggerFieldCriteria[WorkFlowEventExecution_WorkFlowTriggerFieldCriteria["WhenAnySelectedFieldIsUpdated"] = 2] = "WhenAnySelectedFieldIsUpdated";
|
|
17
|
-
WorkFlowEventExecution_WorkFlowTriggerFieldCriteria[WorkFlowEventExecution_WorkFlowTriggerFieldCriteria["WhenSelectedAllFieldsAreUpdated"] = 3] = "WhenSelectedAllFieldsAreUpdated";
|
|
18
|
-
})(WorkFlowEventExecution_WorkFlowTriggerFieldCriteria || (WorkFlowEventExecution_WorkFlowTriggerFieldCriteria = {}));
|
|
19
|
-
export var WorkFlowEventExecution_WorkFlowTriggerOccurence;
|
|
20
|
-
(function (WorkFlowEventExecution_WorkFlowTriggerOccurence) {
|
|
21
|
-
WorkFlowEventExecution_WorkFlowTriggerOccurence[WorkFlowEventExecution_WorkFlowTriggerOccurence["Everytime"] = 1] = "Everytime";
|
|
22
|
-
WorkFlowEventExecution_WorkFlowTriggerOccurence[WorkFlowEventExecution_WorkFlowTriggerOccurence["FirstTime"] = 2] = "FirstTime";
|
|
23
|
-
})(WorkFlowEventExecution_WorkFlowTriggerOccurence || (WorkFlowEventExecution_WorkFlowTriggerOccurence = {}));
|
|
24
|
-
export var WorkFlowTimeExecution_DaysRelationalOperator;
|
|
25
|
-
(function (WorkFlowTimeExecution_DaysRelationalOperator) {
|
|
26
|
-
WorkFlowTimeExecution_DaysRelationalOperator[WorkFlowTimeExecution_DaysRelationalOperator["Before"] = 1] = "Before";
|
|
27
|
-
WorkFlowTimeExecution_DaysRelationalOperator[WorkFlowTimeExecution_DaysRelationalOperator["After"] = 2] = "After";
|
|
28
|
-
})(WorkFlowTimeExecution_DaysRelationalOperator || (WorkFlowTimeExecution_DaysRelationalOperator = {}));
|
|
29
|
-
export var WorkFlowTimeExecution_ExecutionCycle;
|
|
30
|
-
(function (WorkFlowTimeExecution_ExecutionCycle) {
|
|
31
|
-
WorkFlowTimeExecution_ExecutionCycle[WorkFlowTimeExecution_ExecutionCycle["Once"] = 1] = "Once";
|
|
32
|
-
WorkFlowTimeExecution_ExecutionCycle[WorkFlowTimeExecution_ExecutionCycle["Weekly"] = 2] = "Weekly";
|
|
33
|
-
WorkFlowTimeExecution_ExecutionCycle[WorkFlowTimeExecution_ExecutionCycle["Monthly"] = 3] = "Monthly";
|
|
34
|
-
WorkFlowTimeExecution_ExecutionCycle[WorkFlowTimeExecution_ExecutionCycle["Yearly"] = 4] = "Yearly";
|
|
35
|
-
WorkFlowTimeExecution_ExecutionCycle[WorkFlowTimeExecution_ExecutionCycle["Daily"] = 5] = "Daily";
|
|
36
|
-
})(WorkFlowTimeExecution_ExecutionCycle || (WorkFlowTimeExecution_ExecutionCycle = {}));
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3cuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGF0YS1hY2Nlc3Mvc3JjL2xpYi90YWItY29yZS11dGlsaXR5L2FwcC9lbnVtcy93b3JrZmxvdy5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLG1CQUdYO0FBSEQsV0FBWSxtQkFBbUI7SUFDN0IseUVBQWMsQ0FBQTtJQUNkLHVFQUFhLENBQUE7QUFDZixDQUFDLEVBSFcsbUJBQW1CLEtBQW5CLG1CQUFtQixRQUc5QjtBQUVELE1BQU0sQ0FBTixJQUFZLDJDQUtYO0FBTEQsV0FBWSwyQ0FBMkM7SUFDckQsbUhBQVcsQ0FBQTtJQUNYLGlIQUFVLENBQUE7SUFDVixtSUFBbUIsQ0FBQTtJQUNuQixtSEFBVyxDQUFBO0FBQ2IsQ0FBQyxFQUxXLDJDQUEyQyxLQUEzQywyQ0FBMkMsUUFLdEQ7QUFFRCxNQUFNLENBQU4sSUFBWSxtREFJWDtBQUpELFdBQVksbURBQW1EO0lBQzdELCtKQUF5QixDQUFBO0lBQ3pCLCtLQUFpQyxDQUFBO0lBQ2pDLG1MQUFtQyxDQUFBO0FBQ3JDLENBQUMsRUFKVyxtREFBbUQsS0FBbkQsbURBQW1ELFFBSTlEO0FBRUQsTUFBTSxDQUFOLElBQVksK0NBR1g7QUFIRCxXQUFZLCtDQUErQztJQUN6RCwrSEFBYSxDQUFBO0lBQ2IsK0hBQWEsQ0FBQTtBQUNmLENBQUMsRUFIVywrQ0FBK0MsS0FBL0MsK0NBQStDLFFBRzFEO0FBRUQsTUFBTSxDQUFOLElBQVksNENBR1g7QUFIRCxXQUFZLDRDQUE0QztJQUN0RCxtSEFBVSxDQUFBO0lBQ1YsaUhBQVMsQ0FBQTtBQUNYLENBQUMsRUFIVyw0Q0FBNEMsS0FBNUMsNENBQTRDLFFBR3ZEO0FBRUQsTUFBTSxDQUFOLElBQVksb0NBTVg7QUFORCxXQUFZLG9DQUFvQztJQUM5QywrRkFBUSxDQUFBO0lBQ1IsbUdBQVUsQ0FBQTtJQUNWLHFHQUFXLENBQUE7SUFDWCxtR0FBVSxDQUFBO0lBQ1YsaUdBQVMsQ0FBQTtBQUNYLENBQUMsRUFOVyxvQ0FBb0MsS0FBcEMsb0NBQW9DLFFBTS9DIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gV29ya0Zsb3dUcmlnZ2VyVHlwZSB7XHJcbiAgRXZlbnRCYXNlZCA9IDEsXHJcbiAgRGF0ZUJhc2VkID0gMixcclxufVxyXG5cclxuZXhwb3J0IGVudW0gV29ya0Zsb3dFdmVudEV4ZWN1dGlvbl9Xb3JrRmxvd1RyaWdnZXJFdmVudCB7XHJcbiAgQ3JlYXRlZCA9IDEsXHJcbiAgRWRpdGVkID0gMixcclxuICBDcmVhdGVkT3JFZGl0ZWQgPSAzLFxyXG4gIERlbGV0ZWQgPSA0LFxyXG59XHJcblxyXG5leHBvcnQgZW51bSBXb3JrRmxvd0V2ZW50RXhlY3V0aW9uX1dvcmtGbG93VHJpZ2dlckZpZWxkQ3JpdGVyaWEge1xyXG4gIFdoZW5BbnlGaWVsZElzVXBkYXRlZCA9IDEsXHJcbiAgV2hlbkFueVNlbGVjdGVkRmllbGRJc1VwZGF0ZWQgPSAyLFxyXG4gIFdoZW5TZWxlY3RlZEFsbEZpZWxkc0FyZVVwZGF0ZWQgPSAzLFxyXG59XHJcblxyXG5leHBvcnQgZW51bSBXb3JrRmxvd0V2ZW50RXhlY3V0aW9uX1dvcmtGbG93VHJpZ2dlck9jY3VyZW5jZSB7XHJcbiAgRXZlcnl0aW1lID0gMSxcclxuICBGaXJzdFRpbWUgPSAyLFxyXG59XHJcblxyXG5leHBvcnQgZW51bSBXb3JrRmxvd1RpbWVFeGVjdXRpb25fRGF5c1JlbGF0aW9uYWxPcGVyYXRvciB7XHJcbiAgQmVmb3JlID0gMSxcclxuICBBZnRlciA9IDIsXHJcbn1cclxuXHJcbmV4cG9ydCBlbnVtIFdvcmtGbG93VGltZUV4ZWN1dGlvbl9FeGVjdXRpb25DeWNsZSB7XHJcbiAgT25jZSA9IDEsXHJcbiAgV2Vla2x5ID0gMixcclxuICBNb250aGx5ID0gMyxcclxuICBZZWFybHkgPSA0LFxyXG4gIERhaWx5ID0gNSxcclxufVxyXG4iXX0=
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare enum WorkFlowTriggerType {
|
|
2
|
-
EventBased = 1,
|
|
3
|
-
DateBased = 2
|
|
4
|
-
}
|
|
5
|
-
export declare enum WorkFlowEventExecution_WorkFlowTriggerEvent {
|
|
6
|
-
Created = 1,
|
|
7
|
-
Edited = 2,
|
|
8
|
-
CreatedOrEdited = 3,
|
|
9
|
-
Deleted = 4
|
|
10
|
-
}
|
|
11
|
-
export declare enum WorkFlowEventExecution_WorkFlowTriggerFieldCriteria {
|
|
12
|
-
WhenAnyFieldIsUpdated = 1,
|
|
13
|
-
WhenAnySelectedFieldIsUpdated = 2,
|
|
14
|
-
WhenSelectedAllFieldsAreUpdated = 3
|
|
15
|
-
}
|
|
16
|
-
export declare enum WorkFlowEventExecution_WorkFlowTriggerOccurence {
|
|
17
|
-
Everytime = 1,
|
|
18
|
-
FirstTime = 2
|
|
19
|
-
}
|
|
20
|
-
export declare enum WorkFlowTimeExecution_DaysRelationalOperator {
|
|
21
|
-
Before = 1,
|
|
22
|
-
After = 2
|
|
23
|
-
}
|
|
24
|
-
export declare enum WorkFlowTimeExecution_ExecutionCycle {
|
|
25
|
-
Once = 1,
|
|
26
|
-
Weekly = 2,
|
|
27
|
-
Monthly = 3,
|
|
28
|
-
Yearly = 4,
|
|
29
|
-
Daily = 5
|
|
30
|
-
}
|