@techextensor/tab-core-utility 2.2.196 → 2.2.198

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.
Files changed (82) hide show
  1. package/README.md +7 -0
  2. package/esm2022/index.mjs +11 -10
  3. package/esm2022/lib/tab-core-utility/app/constants/api-constants.mjs +2 -10
  4. package/esm2022/lib/tab-core-utility/app/constants/common.mjs +16 -1
  5. package/esm2022/lib/tab-core-utility/app/crud/tab-blueprint.service.mjs +7 -7
  6. package/esm2022/lib/tab-core-utility/app/crud/tab-crud.service.mjs +45 -39
  7. package/esm2022/lib/tab-core-utility/app/crud/tab-delete.service.mjs +14 -18
  8. package/esm2022/lib/tab-core-utility/app/crud/tab-formio.service.mjs +9 -9
  9. package/esm2022/lib/tab-core-utility/app/crud/tab-get.service.mjs +62 -206
  10. package/esm2022/lib/tab-core-utility/app/crud/tab-insert.service.mjs +11 -12
  11. package/esm2022/lib/tab-core-utility/app/crud/tab-release.service.mjs +7 -7
  12. package/esm2022/lib/tab-core-utility/app/crud/tab-update.service.mjs +36 -22
  13. package/esm2022/lib/tab-core-utility/app/crud/tab-workflow.service.mjs +7 -7
  14. package/esm2022/lib/tab-core-utility/app/enums/dsq.enum.mjs +13 -13
  15. package/esm2022/lib/tab-core-utility/app/helpers/auth-response.adapter.mjs +31 -6
  16. package/esm2022/lib/tab-core-utility/app/helpers/common/app.helpers.mjs +12 -13
  17. package/esm2022/lib/tab-core-utility/app/helpers/common/dsq.helpers.mjs +7 -7
  18. package/esm2022/lib/tab-core-utility/app/helpers/common/meta-data.helpers.mjs +11 -7
  19. package/esm2022/lib/tab-core-utility/app/helpers/common/req-res.helpers.mjs +15 -27
  20. package/esm2022/lib/tab-core-utility/app/helpers/common/template.helpers.mjs +7 -7
  21. package/esm2022/lib/tab-core-utility/app/helpers/common/user-personalization.helper.mjs +7 -7
  22. package/esm2022/lib/tab-core-utility/app/helpers/common/where-clause.helpers.mjs +14 -59
  23. package/esm2022/lib/tab-core-utility/app/helpers/login-response.adapter.mjs +31 -6
  24. package/esm2022/lib/tab-core-utility/app/helpers/screen/forms.helpers.mjs +7 -7
  25. package/esm2022/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.mjs +7 -7
  26. package/esm2022/lib/tab-core-utility/app/helpers/screen/grid.helpers.mjs +12 -96
  27. package/esm2022/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.mjs +7 -7
  28. package/esm2022/lib/tab-core-utility/app/helpers/screen/plugin.helpers.mjs +7 -7
  29. package/esm2022/lib/tab-core-utility/app/helpers/screen/screen.helpers.mjs +7 -15
  30. package/esm2022/lib/tab-core-utility/app/interfaces/auth.interface.mjs +1 -1
  31. package/esm2022/lib/tab-core-utility/app/models/api-query.class.mjs +36 -64
  32. package/esm2022/lib/tab-core-utility/app/models/app-object.class.mjs +1 -27
  33. package/esm2022/lib/tab-core-utility/app/models/app-screen.model.mjs +4 -4
  34. package/esm2022/lib/tab-core-utility/app/models/data-source-queries.class.mjs +1 -22
  35. package/esm2022/lib/tab-core-utility/app/models/data-source-query.model.mjs +4 -4
  36. package/esm2022/lib/tab-core-utility/app/models/filter.model.mjs +16 -18
  37. package/esm2022/lib/tab-core-utility/app/models/sort.model.mjs +9 -13
  38. package/esm2022/lib/tab-core-utility/app/utils/filter.util.mjs +3 -3
  39. package/esm2022/lib/tab-core-utility/app/utils/req-res.util.mjs +1 -13
  40. package/esm2022/lib/tab-core-utility/app/utils/select-query.util.mjs +107 -0
  41. package/esm2022/lib/tab-core-utility/app/utils/tab-app.util.mjs +8 -5
  42. package/esm2022/lib/tab-core-utility/auth/auth.service.mjs +8 -9
  43. package/esm2022/lib/tab-core-utility/auth/idb-storage.service.mjs +7 -7
  44. package/esm2022/lib/tab-core-utility/auth/local-storage.service.mjs +7 -7
  45. package/esm2022/lib/tab-core-utility/auth/session-storage.service.mjs +7 -7
  46. package/esm2022/lib/tab-core-utility/core/http-client/api.service.mjs +7 -7
  47. package/esm2022/lib/tab-core-utility/core/pipe/translate.pipe.mjs +11 -11
  48. package/esm2022/lib/tab-core-utility/core/service/confirmation.service.mjs +9 -9
  49. package/esm2022/lib/tab-core-utility/core/service/encryption.service.mjs +7 -7
  50. package/esm2022/lib/tab-core-utility/core/service/notification.service.mjs +9 -9
  51. package/esm2022/lib/tab-core-utility/core/service/signalr/operation-tracker.service.mjs +7 -7
  52. package/esm2022/lib/tab-core-utility/core/service/signalr/signalr-infrastructure.service.mjs +9 -9
  53. package/esm2022/lib/tab-core-utility/core/service/signalr/signalr.service.mjs +9 -9
  54. package/esm2022/lib/tab-core-utility/core/service/translation.service.mjs +9 -9
  55. package/index.d.ts +10 -1
  56. package/lib/tab-core-utility/app/constants/api-constants.d.ts +0 -4
  57. package/lib/tab-core-utility/app/constants/common.d.ts +15 -1
  58. package/lib/tab-core-utility/app/crud/tab-crud.service.d.ts +6 -1
  59. package/lib/tab-core-utility/app/crud/tab-get.service.d.ts +16 -67
  60. package/lib/tab-core-utility/app/crud/tab-update.service.d.ts +3 -1
  61. package/lib/tab-core-utility/app/enums/dsq.enum.d.ts +2 -2
  62. package/lib/tab-core-utility/app/helpers/auth-response.adapter.d.ts +2 -0
  63. package/lib/tab-core-utility/app/helpers/common/app.helpers.d.ts +4 -1
  64. package/lib/tab-core-utility/app/helpers/common/meta-data.helpers.d.ts +1 -0
  65. package/lib/tab-core-utility/app/helpers/common/req-res.helpers.d.ts +0 -17
  66. package/lib/tab-core-utility/app/helpers/common/where-clause.helpers.d.ts +0 -18
  67. package/lib/tab-core-utility/app/helpers/login-response.adapter.d.ts +2 -0
  68. package/lib/tab-core-utility/app/helpers/screen/grid.helpers.d.ts +0 -53
  69. package/lib/tab-core-utility/app/helpers/screen/screen.helpers.d.ts +0 -6
  70. package/lib/tab-core-utility/app/interfaces/auth.interface.d.ts +1 -2
  71. package/lib/tab-core-utility/app/models/api-query.class.d.ts +84 -94
  72. package/lib/tab-core-utility/app/models/app-object.class.d.ts +2 -65
  73. package/lib/tab-core-utility/app/models/data-source-queries.class.d.ts +2 -71
  74. package/lib/tab-core-utility/app/models/filter.model.d.ts +9 -11
  75. package/lib/tab-core-utility/app/models/sort.model.d.ts +5 -7
  76. package/lib/tab-core-utility/app/utils/filter.util.d.ts +2 -2
  77. package/lib/tab-core-utility/app/utils/req-res.util.d.ts +0 -8
  78. package/lib/tab-core-utility/app/utils/select-query.util.d.ts +24 -0
  79. package/lib/tab-core-utility/app/utils/tab-app.util.d.ts +3 -3
  80. package/package.json +1 -3
  81. package/esm2022/lib/tab-core-utility/app/enums/workflow.enum.mjs +0 -37
  82. package/lib/tab-core-utility/app/enums/workflow.enum.d.ts +0 -30
@@ -1,119 +1,109 @@
1
- import { ConjuctionClause, RelationalOperator, FilterValueType, SortSequence } from '../enums/dsq.enum';
2
- import { JoinType, QueryType } from '../enums/query.enum';
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
- export declare class APIQuery {
5
- QueryObjectID: string | any;
6
- QueryType: QueryType | any;
7
- Joins: JoinDetails[];
8
- WhereClause: APIFilterCriteria;
9
- constructor();
10
- }
11
- export declare class APIInsertQuery extends APIQuery {
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
- export declare class ChildRelationShip {
32
- RelSourceObjectID: string | any;
33
- RelSourceFieldID: string | any;
34
- RelTargetObjectID: string | any;
35
- RelTargetFieldID: string | any;
36
- LocalId: string;
37
- childDetails: LookUpDetails;
13
+ /**
14
+ * Pagination configuration.
15
+ */
16
+ export declare class APIPager {
17
+ pageNumber: number | any;
18
+ pageSize: number | any;
19
+ returnTotalCount?: boolean;
38
20
  }
39
- export declare class APIFilterCriteria {
40
- filters: APIFilter[] | any;
41
- filterLogic: string | any;
42
- SQLQuery: string | any;
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
- conjunction: ConjuctionClause | any;
34
+ id?: string;
46
35
  fieldName: string | any;
47
36
  operator: RelationalOperator | any;
48
37
  valueType: FilterValueType | any;
49
- value: string | any;
50
- sequence: number | any;
51
- groupId: number | any;
52
- parameterName: string | any;
53
- }
54
- export declare class APIValueSets {
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
- export declare class APIParameters {
69
- ID: string | any;
70
- ParameterName: string | any;
71
- DataSourceQueryID: string | any;
72
- MappingFieldName: string | any;
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
- * New CRUD API Select Query Payload
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 CRUDSelectPayload {
79
- EntityName: string | any;
80
- SelectedFields: string[];
81
- includes?: any[];
82
- Pager?: CRUDPager;
83
- whereClause?: CRUDWhereClause;
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
- * Pager configuration for CRUD API
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 CRUDPager {
91
- pageNumber: number;
92
- pageSize: number;
93
- returnTotalCount: boolean;
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
- * Where clause structure for CRUD API
78
+ * Base query shape shared between Select / Update / Delete payloads.
97
79
  */
98
- export declare class CRUDWhereClause {
99
- filters: CRUDFilter[];
80
+ export declare class APIQuery {
81
+ entityName?: string;
82
+ whereClause?: APIFilterCriteria;
83
+ joins?: APIJoin[];
100
84
  }
101
85
  /**
102
- * Filter structure for CRUD API
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 CRUDFilter {
105
- fieldName: string | any;
106
- operator: number | any;
107
- value: any;
108
- valueType: number | any;
109
- conjunction: number | any;
110
- groupId: number | any;
111
- sequence: number | any;
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
- * Sort structure for CRUD API
104
+ * Bulk-insert value sets — kept as-is (no CRUD equivalent).
115
105
  */
116
- export declare class CRUDSort {
117
- FieldName: string | any;
118
- Direction: number | any;
106
+ export declare class APIBulkInsertFieldsValueSets {
107
+ Fields: string | any;
108
+ Value: string | any;
119
109
  }
@@ -1,48 +1,5 @@
1
- import { ObjectCreationType } from '../enums/dsq.enum';
2
- import { DataAccessSet, DeploymentStatus } from '../enums/permission.enum';
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 { SortSequence, ConjuctionClause, RelationalOperator, ObjectCreationType, DataSourceQueryFieldType } from '../enums/dsq.enum';
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: AppFields;
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 { ConjuctionClause, DataSourceQueryFilterFieldType, FilterValueType, RelationalOperator } from "../enums/dsq.enum";
1
+ import { ConjunctionClause, DataSourceQueryFilterFieldType, FilterValueType, RelationalOperator } from "../enums/dsq.enum";
2
2
  export declare class FilterModel {
3
3
  private readonly raw;
4
- readonly ID: string;
5
- readonly ConjuctionClause: ConjuctionClause;
6
- readonly RelationalOperator: RelationalOperator;
4
+ readonly Id: string;
5
+ readonly FieldName: string;
6
+ readonly Operator: RelationalOperator;
7
7
  readonly ValueType: FilterValueType;
8
- readonly value: string;
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 FieldID: string;
13
+ readonly LookUpDetail: string | null;
14
14
  constructor(raw: any);
15
15
  /**
16
- * Converts the model to JSON in the old API format (PascalCase).
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 { DataSourceQueryFilterFieldType, SortSequence } from "../enums/dsq.enum";
1
+ import { SortDirection } from "../enums/dsq.enum";
2
2
  export declare class SortModel {
3
3
  private readonly raw;
4
- readonly ID: string;
5
- readonly SortSequence: SortSequence;
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
- * Converts the model to JSON in the old API format (PascalCase).
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 getConjuctionClauseName(type: number): string;
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 getConjuctionClause(type: string): number;
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
1
  import { HttpHeaders } from '@angular/common/http';
2
- import { AppObject } from '../models/app-object.class';
3
2
  /**
4
3
  * Delete a key from the response object
5
4
  *
@@ -30,13 +29,6 @@ export declare function removeMultiplePrimaryKey(response: any, fields: any): an
30
29
  * @returns HttpHeaders | null - The HttpHeaders object or null
31
30
  */
32
31
  export declare function getHeaders(headers?: any): any;
33
- /**
34
- * Get the primary key fields from the AppObject
35
- *
36
- * @param appObject - The AppObject
37
- * @returns AppFields[] | null - The array of primary key fields or null
38
- */
39
- export declare function getPrimaryKeyFields(appObject: AppObject): import("@techextensor/tab-core-utility").AppFields[] | null;
40
32
  /**
41
33
  * Get the edit record ID from the response object
42
34
  *
@@ -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 { AppObject } from '../models/app-object.class';
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 AppObject
6
+ * @param appObject - The AppObjectModel
7
7
  * @returns any - The synchronized response object
8
8
  */
9
- export declare function syncAppObjectFields(response: any, appObject: AppObject): any;
9
+ export declare function syncAppObjectFields(response: any, appObject: AppObjectModel | null | undefined): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techextensor/tab-core-utility",
3
- "version": "2.2.196",
3
+ "version": "2.2.198",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.15",
6
6
  "@angular/core": "^19.2.15",
@@ -29,8 +29,6 @@
29
29
  },
30
30
  ".": {
31
31
  "types": "./index.d.ts",
32
- "esm2022": "./esm2022/techextensor-tab-core-utility.mjs",
33
- "esm": "./esm2022/techextensor-tab-core-utility.mjs",
34
32
  "default": "./esm2022/techextensor-tab-core-utility.mjs"
35
33
  }
36
34
  }
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3cuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGF0YS1hY2Nlc3Mvc3JjL2xpYi90YWItY29yZS11dGlsaXR5L2FwcC9lbnVtcy93b3JrZmxvdy5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLG1CQUdYO0FBSEQsV0FBWSxtQkFBbUI7SUFDN0IseUVBQWMsQ0FBQTtJQUNkLHVFQUFhLENBQUE7QUFDZixDQUFD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- 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
- }