@techextensor/tab-core-utility 2.1.6 → 2.1.7

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 (177) hide show
  1. package/.eslintrc.json +92 -0
  2. package/README.md +7 -0
  3. package/jest.config.ts +22 -0
  4. package/ng-package.json +7 -0
  5. package/package.json +18 -31
  6. package/project.json +42 -0
  7. package/{index.d.ts → src/index.ts} +77 -53
  8. package/src/lib/tab-core-utility/app/constants/api-constants.ts +33 -0
  9. package/src/lib/tab-core-utility/app/constants/common.ts +34 -0
  10. package/src/lib/tab-core-utility/app/constants/error-messages.ts +21 -0
  11. package/src/lib/tab-core-utility/app/constants/storage-constants.ts +17 -0
  12. package/src/lib/tab-core-utility/app/crud/tab-delete.service.ts +144 -0
  13. package/src/lib/tab-core-utility/app/crud/tab-get.service.ts +160 -0
  14. package/src/lib/tab-core-utility/app/crud/tab-insert.service.ts +75 -0
  15. package/src/lib/tab-core-utility/app/crud/tab-update.service.ts +105 -0
  16. package/src/lib/tab-core-utility/app/crud/tab-workflow.service.ts +39 -0
  17. package/src/lib/tab-core-utility/app/enums/controllers.enum.ts +24 -0
  18. package/src/lib/tab-core-utility/app/enums/dsq.enum.ts +46 -0
  19. package/src/lib/tab-core-utility/app/enums/permission.enum.ts +18 -0
  20. package/src/lib/tab-core-utility/app/enums/query.enum.ts +12 -0
  21. package/src/lib/tab-core-utility/app/enums/workflow.enum.ts +35 -0
  22. package/src/lib/tab-core-utility/app/helpers/common/app.helpers.ts +65 -0
  23. package/src/lib/tab-core-utility/app/helpers/common/dsq.helpers.ts +80 -0
  24. package/src/lib/tab-core-utility/app/helpers/common/req-res.helpers.ts +75 -0
  25. package/src/lib/tab-core-utility/app/helpers/common/where-clause.helpers.ts +262 -0
  26. package/src/lib/tab-core-utility/app/helpers/screen/forms.helpers.ts +33 -0
  27. package/src/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.ts +88 -0
  28. package/src/lib/tab-core-utility/app/helpers/screen/grid.helpers.ts +113 -0
  29. package/src/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.ts +74 -0
  30. package/src/lib/tab-core-utility/app/helpers/screen/plugin.helpers.ts +52 -0
  31. package/src/lib/tab-core-utility/app/helpers/screen/screen.helpers.ts +20 -0
  32. package/{lib/tab-core-utility/app/interfaces/auth.interface.d.ts → src/lib/tab-core-utility/app/interfaces/auth.interface.ts} +18 -15
  33. package/src/lib/tab-core-utility/app/interfaces/common-api.interface.ts +27 -0
  34. package/src/lib/tab-core-utility/app/interfaces/grid.interface.ts +118 -0
  35. package/src/lib/tab-core-utility/app/interfaces/orgInfo.interface.ts +34 -0
  36. package/src/lib/tab-core-utility/app/interfaces/schema.interface.ts +11 -0
  37. package/src/lib/tab-core-utility/app/interfaces/user.interface.ts +91 -0
  38. package/src/lib/tab-core-utility/app/models/api-query.class.ts +92 -0
  39. package/src/lib/tab-core-utility/app/models/app-object.class.ts +87 -0
  40. package/src/lib/tab-core-utility/app/models/common.class.ts +30 -0
  41. package/src/lib/tab-core-utility/app/models/data-source-queries.class.ts +114 -0
  42. package/src/lib/tab-core-utility/app/utils/filter.util.ts +78 -0
  43. package/src/lib/tab-core-utility/app/utils/form-builder.util.ts +31 -0
  44. package/src/lib/tab-core-utility/app/utils/json.util.ts +137 -0
  45. package/src/lib/tab-core-utility/app/utils/operators.util.ts +129 -0
  46. package/src/lib/tab-core-utility/app/utils/req-res.util.ts +189 -0
  47. package/src/lib/tab-core-utility/app/utils/tab-app.util.ts +131 -0
  48. package/src/lib/tab-core-utility/auth/auth.service.spec.ts +167 -0
  49. package/src/lib/tab-core-utility/auth/auth.service.ts +91 -0
  50. package/src/lib/tab-core-utility/auth/idb-storage.service.ts +77 -0
  51. package/src/lib/tab-core-utility/auth/local-storage.service.spec.ts +47 -0
  52. package/src/lib/tab-core-utility/auth/local-storage.service.ts +46 -0
  53. package/src/lib/tab-core-utility/auth/session-storage.service.spec.ts +47 -0
  54. package/src/lib/tab-core-utility/auth/session-storage.service.ts +46 -0
  55. package/src/lib/tab-core-utility/core/error-handler/error-handler-interceptor.service.ts +32 -0
  56. package/src/lib/tab-core-utility/core/error-handler/error-handler.store.spec.ts +16 -0
  57. package/src/lib/tab-core-utility/core/error-handler/error-handler.store.ts +26 -0
  58. package/src/lib/tab-core-utility/core/error-handler/models/error-handler.state.ts +9 -0
  59. package/src/lib/tab-core-utility/core/http-client/api-url.token.ts +4 -0
  60. package/src/lib/tab-core-utility/core/http-client/api.service.spec.ts +18 -0
  61. package/src/lib/tab-core-utility/core/http-client/api.service.ts +105 -0
  62. package/src/lib/tab-core-utility/core/util/auth.utils.ts +22 -0
  63. package/src/lib/tab-core-utility/store/auth.store.ts +54 -0
  64. package/src/lib/tab-core-utility/store/orginfo.store.ts +57 -0
  65. package/src/lib/tab-core-utility/store/schema.store.ts +85 -0
  66. package/src/test-setup.ts +8 -0
  67. package/tsconfig.json +29 -0
  68. package/tsconfig.lib.json +17 -0
  69. package/tsconfig.lib.prod.json +7 -0
  70. package/tsconfig.spec.json +16 -0
  71. package/esm2022/index.mjs +0 -64
  72. package/esm2022/lib/tab-core-utility/app/constants/api-constants.mjs +0 -33
  73. package/esm2022/lib/tab-core-utility/app/constants/common.mjs +0 -25
  74. package/esm2022/lib/tab-core-utility/app/constants/error-messages.mjs +0 -13
  75. package/esm2022/lib/tab-core-utility/app/constants/storage-constants.mjs +0 -16
  76. package/esm2022/lib/tab-core-utility/app/crud/tab-delete.service.mjs +0 -145
  77. package/esm2022/lib/tab-core-utility/app/crud/tab-get.service.mjs +0 -131
  78. package/esm2022/lib/tab-core-utility/app/crud/tab-insert.service.mjs +0 -77
  79. package/esm2022/lib/tab-core-utility/app/crud/tab-update.service.mjs +0 -105
  80. package/esm2022/lib/tab-core-utility/app/crud/tab-workflow.service.mjs +0 -43
  81. package/esm2022/lib/tab-core-utility/app/enums/controllers.enum.mjs +0 -26
  82. package/esm2022/lib/tab-core-utility/app/enums/dsq.enum.mjs +0 -48
  83. package/esm2022/lib/tab-core-utility/app/enums/permission.enum.mjs +0 -20
  84. package/esm2022/lib/tab-core-utility/app/enums/query.enum.mjs +0 -14
  85. package/esm2022/lib/tab-core-utility/app/enums/workflow.enum.mjs +0 -37
  86. package/esm2022/lib/tab-core-utility/app/helpers/common/app.helpers.mjs +0 -68
  87. package/esm2022/lib/tab-core-utility/app/helpers/common/dsq.helpers.mjs +0 -70
  88. package/esm2022/lib/tab-core-utility/app/helpers/common/req-res.helpers.mjs +0 -64
  89. package/esm2022/lib/tab-core-utility/app/helpers/common/where-clause.helpers.mjs +0 -208
  90. package/esm2022/lib/tab-core-utility/app/helpers/screen/forms.helpers.mjs +0 -38
  91. package/esm2022/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.mjs +0 -78
  92. package/esm2022/lib/tab-core-utility/app/helpers/screen/grid.helpers.mjs +0 -112
  93. package/esm2022/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.mjs +0 -77
  94. package/esm2022/lib/tab-core-utility/app/helpers/screen/plugin.helpers.mjs +0 -55
  95. package/esm2022/lib/tab-core-utility/app/helpers/screen/screen.helpers.mjs +0 -26
  96. package/esm2022/lib/tab-core-utility/app/interfaces/auth.interface.mjs +0 -2
  97. package/esm2022/lib/tab-core-utility/app/interfaces/common-api.interface.mjs +0 -2
  98. package/esm2022/lib/tab-core-utility/app/interfaces/grid.interface.mjs +0 -3
  99. package/esm2022/lib/tab-core-utility/app/interfaces/orgInfo.interface.mjs +0 -2
  100. package/esm2022/lib/tab-core-utility/app/interfaces/schema.interface.mjs +0 -2
  101. package/esm2022/lib/tab-core-utility/app/interfaces/user.interface.mjs +0 -2
  102. package/esm2022/lib/tab-core-utility/app/models/api-query.class.mjs +0 -47
  103. package/esm2022/lib/tab-core-utility/app/models/app-object.class.mjs +0 -30
  104. package/esm2022/lib/tab-core-utility/app/models/common.class.mjs +0 -12
  105. package/esm2022/lib/tab-core-utility/app/models/data-source-queries.class.mjs +0 -31
  106. package/esm2022/lib/tab-core-utility/app/utils/filter.util.mjs +0 -75
  107. package/esm2022/lib/tab-core-utility/app/utils/form-builder.util.mjs +0 -39
  108. package/esm2022/lib/tab-core-utility/app/utils/json.util.mjs +0 -138
  109. package/esm2022/lib/tab-core-utility/app/utils/operators.util.mjs +0 -129
  110. package/esm2022/lib/tab-core-utility/app/utils/req-res.util.mjs +0 -168
  111. package/esm2022/lib/tab-core-utility/app/utils/tab-app.util.mjs +0 -99
  112. package/esm2022/lib/tab-core-utility/auth/auth.service.mjs +0 -74
  113. package/esm2022/lib/tab-core-utility/auth/idb-storage.service.mjs +0 -69
  114. package/esm2022/lib/tab-core-utility/auth/local-storage.service.mjs +0 -52
  115. package/esm2022/lib/tab-core-utility/auth/session-storage.service.mjs +0 -52
  116. package/esm2022/lib/tab-core-utility/core/error-handler/error-handler-interceptor.service.mjs +0 -26
  117. package/esm2022/lib/tab-core-utility/core/error-handler/error-handler.store.mjs +0 -21
  118. package/esm2022/lib/tab-core-utility/core/error-handler/models/error-handler.state.mjs +0 -5
  119. package/esm2022/lib/tab-core-utility/core/http-client/api-url.token.mjs +0 -4
  120. package/esm2022/lib/tab-core-utility/core/http-client/api.service.mjs +0 -99
  121. package/esm2022/lib/tab-core-utility/core/util/auth.utils.mjs +0 -21
  122. package/esm2022/lib/tab-core-utility/store/auth.store.mjs +0 -43
  123. package/esm2022/lib/tab-core-utility/store/orginfo.store.mjs +0 -42
  124. package/esm2022/lib/tab-core-utility/store/schema.store.mjs +0 -68
  125. package/esm2022/techextensor-tab-core-utility.mjs +0 -5
  126. package/lib/tab-core-utility/app/constants/api-constants.d.ts +0 -30
  127. package/lib/tab-core-utility/app/constants/common.d.ts +0 -8
  128. package/lib/tab-core-utility/app/constants/error-messages.d.ts +0 -6
  129. package/lib/tab-core-utility/app/constants/storage-constants.d.ts +0 -15
  130. package/lib/tab-core-utility/app/crud/tab-delete.service.d.ts +0 -51
  131. package/lib/tab-core-utility/app/crud/tab-get.service.d.ts +0 -58
  132. package/lib/tab-core-utility/app/crud/tab-insert.service.d.ts +0 -37
  133. package/lib/tab-core-utility/app/crud/tab-update.service.d.ts +0 -14
  134. package/lib/tab-core-utility/app/crud/tab-workflow.service.d.ts +0 -20
  135. package/lib/tab-core-utility/app/enums/controllers.enum.d.ts +0 -24
  136. package/lib/tab-core-utility/app/enums/dsq.enum.d.ts +0 -42
  137. package/lib/tab-core-utility/app/enums/permission.enum.d.ts +0 -16
  138. package/lib/tab-core-utility/app/enums/query.enum.d.ts +0 -11
  139. package/lib/tab-core-utility/app/enums/workflow.enum.d.ts +0 -30
  140. package/lib/tab-core-utility/app/helpers/common/app.helpers.d.ts +0 -31
  141. package/lib/tab-core-utility/app/helpers/common/dsq.helpers.d.ts +0 -32
  142. package/lib/tab-core-utility/app/helpers/common/req-res.helpers.d.ts +0 -62
  143. package/lib/tab-core-utility/app/helpers/common/where-clause.helpers.d.ts +0 -82
  144. package/lib/tab-core-utility/app/helpers/screen/forms.helpers.d.ts +0 -11
  145. package/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.d.ts +0 -33
  146. package/lib/tab-core-utility/app/helpers/screen/grid.helpers.d.ts +0 -63
  147. package/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.d.ts +0 -38
  148. package/lib/tab-core-utility/app/helpers/screen/plugin.helpers.d.ts +0 -25
  149. package/lib/tab-core-utility/app/helpers/screen/screen.helpers.d.ts +0 -11
  150. package/lib/tab-core-utility/app/interfaces/common-api.interface.d.ts +0 -24
  151. package/lib/tab-core-utility/app/interfaces/grid.interface.d.ts +0 -110
  152. package/lib/tab-core-utility/app/interfaces/orgInfo.interface.d.ts +0 -31
  153. package/lib/tab-core-utility/app/interfaces/schema.interface.d.ts +0 -11
  154. package/lib/tab-core-utility/app/interfaces/user.interface.d.ts +0 -84
  155. package/lib/tab-core-utility/app/models/api-query.class.d.ts +0 -69
  156. package/lib/tab-core-utility/app/models/app-object.class.d.ts +0 -74
  157. package/lib/tab-core-utility/app/models/common.class.d.ts +0 -24
  158. package/lib/tab-core-utility/app/models/data-source-queries.class.d.ts +0 -95
  159. package/lib/tab-core-utility/app/utils/filter.util.d.ts +0 -30
  160. package/lib/tab-core-utility/app/utils/form-builder.util.d.ts +0 -13
  161. package/lib/tab-core-utility/app/utils/json.util.d.ts +0 -25
  162. package/lib/tab-core-utility/app/utils/operators.util.d.ts +0 -21
  163. package/lib/tab-core-utility/app/utils/req-res.util.d.ts +0 -61
  164. package/lib/tab-core-utility/app/utils/tab-app.util.d.ts +0 -48
  165. package/lib/tab-core-utility/auth/auth.service.d.ts +0 -53
  166. package/lib/tab-core-utility/auth/idb-storage.service.d.ts +0 -14
  167. package/lib/tab-core-utility/auth/local-storage.service.d.ts +0 -22
  168. package/lib/tab-core-utility/auth/session-storage.service.d.ts +0 -22
  169. package/lib/tab-core-utility/core/error-handler/error-handler-interceptor.service.d.ts +0 -3
  170. package/lib/tab-core-utility/core/error-handler/error-handler.store.d.ts +0 -10
  171. package/lib/tab-core-utility/core/error-handler/models/error-handler.state.d.ts +0 -5
  172. package/lib/tab-core-utility/core/http-client/api-url.token.d.ts +0 -3
  173. package/lib/tab-core-utility/core/http-client/api.service.d.ts +0 -65
  174. package/lib/tab-core-utility/core/util/auth.utils.d.ts +0 -9
  175. package/lib/tab-core-utility/store/auth.store.d.ts +0 -19
  176. package/lib/tab-core-utility/store/orginfo.store.d.ts +0 -22
  177. package/lib/tab-core-utility/store/schema.store.d.ts +0 -32
@@ -1,84 +0,0 @@
1
- export interface User {
2
- id: string;
3
- email: string;
4
- token: string;
5
- username: string;
6
- bio: string;
7
- image: string;
8
- }
9
- export interface UserResponse {
10
- user: User;
11
- }
12
- export interface UserStore {
13
- id: any;
14
- email: string;
15
- name: string;
16
- avatar: string;
17
- status: string;
18
- token: string;
19
- }
20
- export interface LoginResponse {
21
- RequestId: string;
22
- IsSuccess: boolean;
23
- Result: Result;
24
- StatusCode: string;
25
- RecordAffectted: number;
26
- TotalRecords: number;
27
- TotalExecutionTime: number;
28
- Log: any[];
29
- Errors: any[];
30
- }
31
- interface Result {
32
- user: User;
33
- Token: string;
34
- RefreshToken: string;
35
- Success: boolean;
36
- Errors: any;
37
- }
38
- export interface User {
39
- Id: any;
40
- PersonData: PersonData;
41
- UserName: string;
42
- Teams: any;
43
- Roles: Role[];
44
- OrgDetails: any;
45
- MailingAddress: any;
46
- Locale: any;
47
- Attributes: Attributes;
48
- }
49
- interface PersonData {
50
- FirstName: string;
51
- MiddleName: any;
52
- ProfileImageURL: any;
53
- LastName: string;
54
- EmailID: any;
55
- Contacts: any;
56
- NotificationDetails: string;
57
- }
58
- interface Role {
59
- ID: string;
60
- RoleName: string;
61
- Description: any;
62
- }
63
- export interface Attributes {
64
- IsEnabled: string;
65
- LocaleSettings: any;
66
- LastLoginTime: string;
67
- PersonId: string;
68
- Id: string;
69
- UserName: string;
70
- NormalizedUserName: string;
71
- Email: string;
72
- NormalizedEmail: string;
73
- EmailConfirmed: string;
74
- PasswordHash: string;
75
- SecurityStamp: string;
76
- ConcurrencyStamp: string;
77
- PhoneNumber: any;
78
- PhoneNumberConfirmed: string;
79
- TwoFactorEnabled: string;
80
- LockoutEnd: any;
81
- LockoutEnabled: string;
82
- AccessFailedCount: string;
83
- }
84
- export {};
@@ -1,69 +0,0 @@
1
- import { ConjuctionClause, RelationalOperator, FilterValueType, SortSequence } from '../enums/dsq.enum';
2
- import { JoinType, QueryType } from '../enums/query.enum';
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;
30
- }
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;
38
- }
39
- export declare class APIFilterCriteria {
40
- Filters: APIFilter[] | any;
41
- FilterLogic: string | any;
42
- }
43
- export declare class APIFilter {
44
- ConjuctionClause: ConjuctionClause | any;
45
- FieldID: string | any;
46
- RelationalOperator: RelationalOperator | any;
47
- ValueType: FilterValueType | any;
48
- value: string | any;
49
- Sequence: number | any;
50
- GroupID: number | any;
51
- parameterName: string | any;
52
- Value: string | any;
53
- }
54
- export declare class APIValueSets {
55
- AppFieldID: string | any;
56
- Value: string | any;
57
- }
58
- export declare class APISort {
59
- ID: string | any;
60
- FieldID: string | any;
61
- SortSequence: SortSequence | any;
62
- Sequence: number | any;
63
- }
64
- export declare class APIParameters {
65
- ID: string | any;
66
- ParameterName: string | any;
67
- DataSourceQueryID: string | any;
68
- MappingFieldName: string | any;
69
- }
@@ -1,74 +0,0 @@
1
- import { ObjectCreationType } from '../enums/dsq.enum';
2
- import { 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 } 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
- }
46
- export declare class ObjectAccess {
47
- ID: string;
48
- ProfileID: Profile;
49
- IsVisible: boolean;
50
- IsReadOnly: boolean;
51
- CanCreate: boolean;
52
- CanEdit: boolean;
53
- CanDelete: boolean;
54
- }
55
- export declare class AppMenu {
56
- ID: string | any;
57
- MenuName: string | any;
58
- DisplayName: string | any;
59
- ScreenID: string | any;
60
- ShortCut: string | any;
61
- Icon: string | any;
62
- ParentID?: number;
63
- Sequence?: number;
64
- Url: string | any;
65
- }
66
- export declare class AppScreen {
67
- ID: string | any;
68
- Name: string | any;
69
- Description: string | any;
70
- DataSourceQuery: DataSourceQueries | any;
71
- Container: string | any;
72
- ScreenType: number | any;
73
- DataSourceQueryID: string | any;
74
- }
@@ -1,24 +0,0 @@
1
- export declare class Role {
2
- ID: string | any;
3
- RoleName: string | any;
4
- Description: string | any;
5
- ParentRole: Role | any;
6
- }
7
- export declare class Configurations {
8
- ID: string | any;
9
- Setting_Key: string | any;
10
- Value: string | any;
11
- }
12
- export declare class Profile {
13
- ID: string;
14
- ProfileName: string;
15
- Description: string;
16
- }
17
- export declare class Resources {
18
- ID: string;
19
- Value: string;
20
- }
21
- export declare class EmailTemplate {
22
- ID: string;
23
- Template: string;
24
- }
@@ -1,95 +0,0 @@
1
- import { DataTypes } from '../enums/controllers.enum';
2
- import { SortSequence, ConjuctionClause, RelationalOperator, ObjectCreationType } from '../enums/dsq.enum';
3
- import { AppObject } from './app-object.class';
4
- import { Profile } from './common.class';
5
- export declare class DataSourceQueries {
6
- ID: string;
7
- ObjectID: AppObject;
8
- ObjectID_Tosave: string;
9
- QueryName: string;
10
- DisplayName: string;
11
- Fields: DataSourceQueries_Fields[];
12
- Filters: FilterCriteria;
13
- Sort: Sort[];
14
- Parameters: Parameters[];
15
- }
16
- export declare class DataSourceQueries_Fields {
17
- Field: AppFields;
18
- SeqNo: number;
19
- Field_GridAttributes: string;
20
- LookupDetails: string;
21
- }
22
- export declare class Parameters {
23
- ID: string;
24
- ParameterName: string;
25
- DataSourceQueryID: string;
26
- MappingFieldName: string;
27
- }
28
- export declare class Sort {
29
- ID: string;
30
- Field: AppFields;
31
- SortSequence: SortSequence;
32
- Sequence: number;
33
- }
34
- export declare class FilterCriteria {
35
- Filters: Filter;
36
- FilterLogic: string;
37
- }
38
- export declare class Filter {
39
- ID: string;
40
- ConjuctionClause: ConjuctionClause;
41
- Field: string;
42
- RelationalOperator: RelationalOperator;
43
- ValueType: any;
44
- value: string;
45
- Sequence: number;
46
- GroupID: number;
47
- }
48
- export declare class AppFields {
49
- ID: string;
50
- ObjectID: AppObject;
51
- FieldName: string;
52
- DisplayName: string;
53
- FieldType: FieldType;
54
- Description: string;
55
- CreationType: ObjectCreationType;
56
- IsRequired: boolean;
57
- IsUnique: boolean;
58
- IsSearchable: boolean;
59
- IsConfidential: boolean;
60
- SystemDBFieldName: string;
61
- IsSystem: boolean;
62
- IsVisible: boolean;
63
- IsDeprecated: boolean;
64
- LookUpDetails: LookUpDetails;
65
- AccessList: FieldAccess[];
66
- Data: string;
67
- IsPrimaryKey: boolean;
68
- Field: AppFields;
69
- }
70
- export declare class FieldType {
71
- DataType: DataTypes;
72
- RelationalOperator: RelationalOperator[];
73
- }
74
- export declare class LookUpDetails {
75
- LookupObject: string;
76
- LookupField: string;
77
- DisplayField: string;
78
- }
79
- export declare class FieldAccess {
80
- ID: string;
81
- ProfileID: Profile;
82
- IsVisible: boolean;
83
- IsReadOnly: boolean;
84
- }
85
- export declare class UpdateQueryParameter {
86
- FieldName: string;
87
- FieldValue: string | number;
88
- }
89
- export declare class ScreenParameter {
90
- event: any;
91
- formJson: any;
92
- formIOObject: any;
93
- serviceList: any;
94
- dailogRef: any;
95
- }
@@ -1,30 +0,0 @@
1
- /**
2
- * Returns the filter value type as a string.
3
- * @param type The filter value type.
4
- * @returns The filter value type as a string.
5
- */
6
- export declare function getFilterValueTypeInString(type: number): string;
7
- /**
8
- * Returns the conjunction clause name based on the type.
9
- * @param type The conjunction clause type.
10
- * @returns The conjunction clause name.
11
- */
12
- export declare function getConjuctionClauseName(type: number): string;
13
- /**
14
- * Returns the conjunction clause value based on the type.
15
- * @param type The conjunction clause name.
16
- * @returns The conjunction clause value.
17
- */
18
- export declare function getConjuctionClause(type: string): number;
19
- /**
20
- * Returns the filter type based on the element.
21
- * @param element The filter element.
22
- * @returns The filter type.
23
- */
24
- export declare function getFilterType(element: any): string;
25
- /**
26
- * Returns the filter value type as an integer.
27
- * @param type The filter value type.
28
- * @returns The filter value type as an integer.
29
- */
30
- export declare function getFilterValueTypeInInt(type: string): string;
@@ -1,13 +0,0 @@
1
- /**
2
- * Returns the form builder type based on the data type.
3
- * @param dataType The data type.
4
- * @returns The form builder type.
5
- */
6
- export declare function getFormBuilderType(dataType: number): string;
7
- /**
8
- * Returns the field type based on the data type and whether it's a lookup.
9
- * @param dataType The data type.
10
- * @param isLookup Indicates if it's a lookup field.
11
- * @returns The field type.
12
- */
13
- export declare function getFieldsType(dataType: number, isLookup: any): string;
@@ -1,25 +0,0 @@
1
- /**
2
- * Validates if a string is a valid JSON.
3
- * @param str The string to validate.
4
- * @returns True if the string is a valid JSON, false otherwise.
5
- */
6
- export declare function validateJSON(str: string): boolean;
7
- /**
8
- * Creates dynamic data based on the input object
9
- * @param obj The input object to create dynamic data from
10
- * @returns The formatted array
11
- */
12
- export declare function createDynamicData(obj: any): {
13
- AppFieldID: string;
14
- Value: any;
15
- }[] | null;
16
- /**
17
- * Removes blank values from the input object
18
- * @param dataObj The input object to remove blank values from
19
- */
20
- export declare function removeBlankValue(dataObj: any): void;
21
- /**
22
- * Removes blank array keys from the input object
23
- * @param dataObj The input object to remove blank array keys from
24
- */
25
- export declare function removeBlankArrayKeys(dataObj: any): void;
@@ -1,21 +0,0 @@
1
- /**
2
- * Converts a relational operator value to a number.
3
- * @param dataType The relational operator value as a string.
4
- * @returns The relational operator value as a number.
5
- */
6
- export declare function getRelationalOperatorValueToNumber(dataType: string): number;
7
- /**
8
- * Converts a relational operator value to a string.
9
- * @param dataType The relational operator value as a number.
10
- * @returns The relational operator value as a string.
11
- */
12
- export declare function getRelationalOperatorValueToString(dataType: number): string;
13
- /**
14
- * Returns a list of operators for the query builder based on the data type.
15
- * @param dataType The data type.
16
- * @returns A list of operators.
17
- */
18
- export declare function getOperatorListForQueryBuilder(dataType: any): {
19
- value: string;
20
- key: string;
21
- }[];
@@ -1,61 +0,0 @@
1
- import { HttpHeaders } from '@angular/common/http';
2
- import { AppObject } from '../models/app-object.class';
3
- import { AppFields } from '../models/data-source-queries.class';
4
- /**
5
- * Delete a key from the response object
6
- *
7
- * @param response - The response object
8
- * @param key - The key to be deleted
9
- * @returns any - The updated response object
10
- */
11
- export declare function deleteKeyFromResponse(response: any, key: string): any;
12
- /**
13
- * Remove the primary key from the response object
14
- *
15
- * @param response - The response object
16
- * @param field - The field to be removed as primary key
17
- * @returns any - The updated response object
18
- */
19
- export declare function removePrimaryKey(response: any, field: string): any;
20
- /**
21
- * Remove multiple primary keys from the response object
22
- *
23
- * @param response - The response object
24
- * @param fields - The array of fields to be removed as primary keys
25
- * @returns any - The updated response object
26
- */
27
- export declare function removeMultiplePrimaryKey(response: any, fields: any): any;
28
- /**
29
- * Get the HttpHeaders for API requests
30
- *
31
- * @returns HttpHeaders | null - The HttpHeaders object or null
32
- */
33
- export declare function getHeaders(): HttpHeaders | null;
34
- /**
35
- * Get the primary key fields from the AppObject
36
- *
37
- * @param appObject - The AppObject
38
- * @returns AppFields[] | null - The array of primary key fields or null
39
- */
40
- export declare function getPrimaryKeyFields(appObject: AppObject): AppFields[] | null;
41
- /**
42
- * Get the edit record ID from the response object
43
- *
44
- * @param response - The response object
45
- * @param fieldName - The field name for the edit record ID
46
- * @returns any - The edit record ID
47
- */
48
- export declare function getEditRecordId(response: any, fieldName: any): any;
49
- /**
50
- * Generate the fields schema based on the AppFields
51
- *
52
- * @param fields - The AppFields object
53
- * @returns any - The generated fields schema
54
- */
55
- export declare function generateFieldsSchema(fields: AppFields): {};
56
- /**
57
- * Get the HttpHeaders for form data requests
58
- *
59
- * @returns HttpHeaders | null - The HttpHeaders object or null
60
- */
61
- export declare function getFormDataHeaders(): HttpHeaders | null;
@@ -1,48 +0,0 @@
1
- import { AppObject } from '../models/app-object.class';
2
- /** Get the DataSourceQuery ID from the selected AppObject's DataSourceQuery array
3
- * @param dsqList - The list of DataSourceQueries
4
- * @param table - The table name
5
- * @param like - The like string
6
- * @returns string - The ID of the DataSourceQuery
7
- */
8
- export declare function getDsqIdfromSelectedAppObjectDSQArray(dsqList: any, table: string, like: string): any;
9
- /** Get the AppObject based on the provided ID
10
- * @param id - The ID of the AppObject
11
- * @returns AppObject | null - The found AppObject or null
12
- */
13
- export declare function getAppObject(id: string): any;
14
- /**
15
- * Get the AppObject from the DataSourceQuery ID
16
- * @param dsqId - The DataSourceQuery ID
17
- * @returns AppObject | null - The found AppObject or null
18
- */
19
- export declare function getAppObjectFromDataSourceQueryID(dsqId: string): any;
20
- /**
21
- * Get the DataSourceQuery ID from the QueryName and table
22
- * @param table - The table name
23
- * @param dsq - The DataSourceQuery name
24
- * @returns any - The found DataSourceQuery
25
- */
26
- export declare function getDsqIDFromQueryName(table: string, dsq: string): any;
27
- /**
28
- * Get the Data from the DataSourceQuery ID
29
- *
30
- * @param dsqId - The DataSourceQuery ID
31
- * @returns any - The found Data
32
- */
33
- export declare function getDataFromDataSourceQueryID(dsqId: string): any;
34
- /**
35
- * Synchronize AppObject fields with the response
36
- *
37
- * @param response - The response object
38
- * @param appObject - The AppObject
39
- * @returns any - The synchronized response object
40
- */
41
- export declare function syncAppObjectFields(response: any, appObject: AppObject): any;
42
- /**
43
- * Get the AppObject based on the SystemDBTableName
44
- *
45
- * @param tableName - The SystemDBTableName
46
- * @returns AppObject | null - The found AppObject or null
47
- */
48
- export declare function getAppObjectFromSystemDBTableName(tableName: string): any;
@@ -1,53 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ForgotPasswordUserRequest, LoginUserRequest, NewUserRequest, ResetPasswordUserRequest } from '../app/interfaces/auth.interface';
3
- import { UserResponse } from '../app/interfaces/user.interface';
4
- import { ApiResponse } from '../app/interfaces/common-api.interface';
5
- import * as i0 from "@angular/core";
6
- export declare class AuthService {
7
- /**
8
- * Injecting required services
9
- */
10
- private readonly apiService;
11
- private readonly localStorageService;
12
- /**
13
- * Fetch user details from the database
14
- *
15
- * @param endPointName - The End Point Name to fetch user details
16
- * @returns Observable<UserResponse> - An observable of UserResponse
17
- */
18
- user(endPointName: string): Observable<UserResponse>;
19
- /**
20
- * Sign in with provided credentials
21
- *
22
- * @param endPointName - The End Point Name to sign in
23
- * @param credentials - The login credentials
24
- * @returns Observable<UserResponse> - An observable of UserResponse
25
- */
26
- signIn(endPointName: string, credentials: LoginUserRequest): Observable<UserResponse>;
27
- /**
28
- * Register a new user
29
- *
30
- * @param endPointName - The End Point Name to register a new user
31
- * @param credentials - The new user's credentials
32
- * @returns Observable<UserResponse> - An observable of UserResponse
33
- */
34
- register(endPointName: string, credentials: NewUserRequest): Observable<UserResponse>;
35
- /**
36
- * Forgot password
37
- * @param endPointName - The End Point Name of API
38
- * @param email - The email of user
39
- */
40
- forgotPassword(endPointName: string, email: ForgotPasswordUserRequest): Observable<ApiResponse>;
41
- /**
42
- * Reset password
43
- * @param endPointName - The End Point Name of API
44
- * @param password - The password of user
45
- */
46
- resetPassword(endPointName: string, password: ResetPasswordUserRequest): Observable<ApiResponse>;
47
- /**
48
- * Logout current session
49
- */
50
- logout(key: string): void;
51
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
52
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
53
- }
@@ -1,14 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class IdbService {
3
- private readonly dbName;
4
- private readonly dbVersion;
5
- private dbPromise;
6
- constructor();
7
- setItem(key: string, data: any): Promise<void>;
8
- private setItemIndexedDb;
9
- getItem(key: string): Promise<any>;
10
- private getItemIndexedDb;
11
- clearIndexedDB(): Promise<void>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<IdbService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<IdbService>;
14
- }
@@ -1,22 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class LocalStorageService {
3
- /**
4
- * Set data in local storage
5
- * @param key - Key to store the data
6
- * @param data - Data to be stored
7
- */
8
- setLocalStorage: (key: string, data: any) => void;
9
- /**
10
- * Get data from local storage
11
- * @param key - Key to retrieve the data
12
- * @returns The data stored in local storage
13
- */
14
- getLocalStorage: (key: string) => any;
15
- /**
16
- * Remove data from local storage
17
- * @param key - Key of the data to be removed
18
- */
19
- removeLocalStorage: (key: string) => void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageService, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageService>;
22
- }
@@ -1,22 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class SessionStorageService {
3
- /**
4
- * Set data in session storage
5
- * @param key - Key to store the data
6
- * @param data - Data to be stored
7
- */
8
- setSessionStorage: (key: string, data: any) => void;
9
- /**
10
- * Get data from session storage
11
- * @param key - Key to retrieve the data
12
- * @returns The data stored in session storage
13
- */
14
- getSessionStorage: (key: string) => any;
15
- /**
16
- * Remove data from session storage
17
- * @param key - Key of the data to be removed
18
- */
19
- removeSessionStorage: (key: string) => void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<SessionStorageService, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<SessionStorageService>;
22
- }
@@ -1,3 +0,0 @@
1
- import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- export declare const errorHandlingInterceptor: (request: HttpRequest<any>, next: HttpHandlerFn) => Observable<HttpEvent<any>>;
@@ -1,10 +0,0 @@
1
- import { HttpErrorResponse } from '@angular/common/http';
2
- export declare const ErrorHandlerStore: import("@angular/core").Type<{
3
- code: import("@angular/core").Signal<number>;
4
- message: import("@angular/core").Signal<string | undefined>;
5
- handleError401: (error: HttpErrorResponse) => void;
6
- handleError404: (error: HttpErrorResponse) => void;
7
- } & import("@ngrx/signals").StateSignal<{
8
- code: number;
9
- message: string | undefined;
10
- }>>;