@techextensor/tab-core-utility 2.1.5 → 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 -23
  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 -15
  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 -147
  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 -14
  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
@@ -0,0 +1,20 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ import { Injectable } from '@angular/core';
3
+ import { Common } from '../../constants/common';
4
+
5
+ @Injectable({ providedIn: 'root' })
6
+ export class ScreenHelper {
7
+ /**
8
+ * Retrieves screen data based on the provided screen ID.
9
+ * @param screenId The ID of the screen to retrieve.
10
+ * @returns The screen data if found, otherwise null.
11
+ */
12
+ getScreen(screenId: string) {
13
+ const tabData: any = Common.tabJson;
14
+ if (tabData) {
15
+ return tabData?.AppScreens.find(
16
+ (t: any) => t?.ID == screenId.toLowerCase()
17
+ );
18
+ } else return null;
19
+ }
20
+ }
@@ -1,15 +1,18 @@
1
- export interface NewUserRequest {
2
- username?: string;
3
- email: string;
4
- password: string;
5
- }
6
- export interface LoginUserRequest {
7
- email: string;
8
- password: string;
9
- }
10
- export interface ForgotPasswordUserRequest {
11
- email: string;
12
- }
13
- export interface ResetPasswordUserRequest {
14
- password: string;
15
- }
1
+ export interface NewUserRequest {
2
+ username?: string;
3
+ email: string;
4
+ password: string;
5
+ }
6
+
7
+ export interface LoginUserRequest {
8
+ email: string;
9
+ password: string;
10
+ }
11
+
12
+ export interface ForgotPasswordUserRequest {
13
+ email: string;
14
+ }
15
+
16
+ export interface ResetPasswordUserRequest {
17
+ password: string;
18
+ }
@@ -0,0 +1,27 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ export interface ApiResponse {
3
+ requestId: string;
4
+ isSuccess: boolean;
5
+ result: any;
6
+ errors: string[];
7
+ }
8
+ export interface RecordInfo {
9
+ isSystemRecord: boolean | null;
10
+ blueprintId: string | null;
11
+ blueprintStatusId: string | null;
12
+ recordId: string;
13
+ primaryKey: string;
14
+ }
15
+
16
+
17
+ export interface CommonApiResponse {
18
+ RequestId: string
19
+ IsSuccess: boolean
20
+ Result: string | any[]
21
+ StatusCode: string
22
+ RecordAffectted: number
23
+ TotalRecords: number
24
+ TotalExecutionTime: number
25
+ Log: any[]
26
+ Errors: any[]
27
+ }
@@ -0,0 +1,118 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+
3
+ export interface JqWidghtModel {
4
+ width?: number | any;
5
+ height?: number | any;
6
+ source?: SourceModel;
7
+ columns?: Array<ColumnDetailModel>;
8
+ isPageable?: boolean;
9
+ isAutoheight?: boolean;
10
+ isSortable?: boolean;
11
+ selectionmode?: string;
12
+ columngroups?: Array<ColumngroupModel>;
13
+ isAltRow?: boolean;
14
+ isenabletooltips?: boolean;
15
+ iseditable?: boolean;
16
+ sourceId?: string;
17
+ typeOfData?: string;
18
+ actualData?: Array<any>;
19
+ dataField?: Array<DataFieldsModel>;
20
+ actionArray?: Array<ActionModel>;
21
+ isShowToolbar?: boolean;
22
+ isShowStatusBar?: boolean;
23
+ actionsIn?: string;
24
+ isFilterable?: boolean;
25
+ isSortbackGroungColor?: boolean;
26
+ isautoshowfiltericon?: boolean;
27
+ isshowfilterrow?: boolean;
28
+ pagermode?: string;
29
+ isGroupable?: boolean;
30
+ isRowlevelEdit?: boolean;
31
+ isRowlevelDelete?: boolean;
32
+ isRowlevelView?: boolean;
33
+ primaryKeycolumnName?: string;
34
+ gridId?: string;
35
+ id?: string;
36
+ groups?: any;
37
+ groupColumns?: string;
38
+ gridColumnArr?: Array<string> | any;
39
+ theme?: string;
40
+ pagesizeoptions?: string;
41
+ defaultPageSize?: string;
42
+ currentScreenId?: string;
43
+ customNavigate?: string;
44
+ gridName?: string;
45
+ gridState?: string | any;
46
+ iscolumnsreorder?: boolean;
47
+ isStateB?: boolean;
48
+ addScreenId?: string;
49
+ editScreenId?: string;
50
+ viewScreenId?: string;
51
+ }
52
+
53
+ export interface SourceModel {
54
+ datatype?: string;
55
+ datafields?: Array<DataFieldsModel>;
56
+ id?: string;
57
+ localdata?: any;
58
+ pagesize?: string;
59
+ }
60
+
61
+ export interface DataFieldsModel {
62
+ name?: string;
63
+ type?: string;
64
+ seq?: number;
65
+ }
66
+
67
+ export interface ColumnDetailModel {
68
+ text?: string;
69
+ dataField?: string;
70
+ width?: string;
71
+ cellsalign?: string;
72
+ cellsformat?: string;
73
+ columnType?: string;
74
+ columnGroup?: string;
75
+ editable?: boolean;
76
+ buttonclick?: any;
77
+ renderer?: any;
78
+ columntype?: string;
79
+ filtertype?: string;
80
+ seq?: number;
81
+ align?: string;
82
+ sortable?: boolean;
83
+ hidden?: boolean;
84
+ filterable?: boolean;
85
+ cellsrenderer?: any;
86
+ filterParameter?: string;
87
+ addScreenId?: string;
88
+ editScreenId?: string;
89
+ viewScreenId?: string;
90
+ appFieldId?: string;
91
+ isPrimaryKey?: boolean;
92
+ LookUpDetails?: any;
93
+ dropDownLookup?: any;
94
+ SystemDBFieldName?: any;
95
+ }
96
+
97
+ export interface ColumngroupModel {
98
+ text?: string;
99
+ align?: string;
100
+ name?: string;
101
+ }
102
+
103
+ export interface ActionModel {
104
+ name?: string;
105
+ imgSrc?: string;
106
+ buttonWidth?: number;
107
+ buttonHeight?: number;
108
+ buttonValue?: string;
109
+ imgPosition?: string;
110
+ textPosition?: string;
111
+ textImageRelation?: string;
112
+ }
113
+
114
+ export interface ColumnLevelActions {
115
+ name?: string;
116
+ rowId?: number;
117
+ valueToShow?: string;
118
+ }
@@ -0,0 +1,34 @@
1
+ import { RecordInfo } from "./common-api.interface"
2
+
3
+ export interface OrgInfoResponse {
4
+ RequestId: string
5
+ IsSuccess: boolean
6
+ Result: Result[]
7
+ StatusCode: string
8
+ RecordAffectted: number
9
+ TotalRecords: number
10
+ TotalExecutionTime: number
11
+ Log: string[]
12
+ Errors: any[]
13
+ }
14
+
15
+ export interface Result {
16
+ RecordInfo: RecordInfo
17
+ LocaleSettings: string
18
+ OrganizationName: string
19
+ ID: string
20
+ PrimaryContact: any
21
+ Address: any
22
+ }
23
+
24
+ export interface Info {
25
+ FavIcon: string,
26
+ Org_Brand_Color: string,
27
+ Org_Logo: string,
28
+ Org_Menu_Logo: string,
29
+ ShowSignUp: string,
30
+ TagLine: string,
31
+ profileScreenID: string,
32
+ workFlowName: string,
33
+ OrganizationName: string
34
+ }
@@ -0,0 +1,11 @@
1
+ export interface SchemaResponse {
2
+ RequestId: string
3
+ IsSuccess: boolean
4
+ Result: string
5
+ StatusCode: string
6
+ RecordAffectted: number
7
+ TotalRecords: number
8
+ TotalExecutionTime: number
9
+ Log: any[]
10
+ Errors: any[]
11
+ }
@@ -0,0 +1,91 @@
1
+ export interface User {
2
+ id: string;
3
+ email: string;
4
+ token: string;
5
+ username: string;
6
+ bio: string;
7
+ image: string;
8
+ }
9
+
10
+ export interface UserResponse {
11
+ user: User;
12
+ }
13
+
14
+ export interface UserStore {
15
+ id: any
16
+ email: string
17
+ name: string
18
+ avatar: string
19
+ status: string
20
+ token: string
21
+ }
22
+
23
+ export interface LoginResponse {
24
+ RequestId: string
25
+ IsSuccess: boolean
26
+ Result: Result
27
+ StatusCode: string
28
+ RecordAffectted: number
29
+ TotalRecords: number
30
+ TotalExecutionTime: number
31
+ Log: any[]
32
+ Errors: any[]
33
+ }
34
+
35
+ interface Result {
36
+ user: User
37
+ Token: string
38
+ RefreshToken: string
39
+ Success: boolean
40
+ Errors: any
41
+ }
42
+
43
+ export interface User {
44
+ Id: any
45
+ PersonData: PersonData
46
+ UserName: string
47
+ Teams: any
48
+ Roles: Role[]
49
+ OrgDetails: any
50
+ MailingAddress: any
51
+ Locale: any
52
+ Attributes: Attributes
53
+ }
54
+
55
+ interface PersonData {
56
+ FirstName: string
57
+ MiddleName: any
58
+ ProfileImageURL: any
59
+ LastName: string
60
+ EmailID: any
61
+ Contacts: any
62
+ NotificationDetails: string
63
+ }
64
+
65
+ interface Role {
66
+ ID: string
67
+ RoleName: string
68
+ Description: any
69
+ }
70
+
71
+ export interface Attributes {
72
+ IsEnabled: string
73
+ LocaleSettings: any
74
+ LastLoginTime: string
75
+ PersonId: string
76
+ Id: string
77
+ UserName: string
78
+ NormalizedUserName: string
79
+ Email: string
80
+ NormalizedEmail: string
81
+ EmailConfirmed: string
82
+ PasswordHash: string
83
+ SecurityStamp: string
84
+ ConcurrencyStamp: string
85
+ PhoneNumber: any
86
+ PhoneNumberConfirmed: string
87
+ TwoFactorEnabled: string
88
+ LockoutEnd: any
89
+ LockoutEnabled: string
90
+ AccessFailedCount: string
91
+ }
@@ -0,0 +1,92 @@
1
+ /* eslint-disable @typescript-eslint/no-inferrable-types */
2
+ /* eslint-disable @typescript-eslint/no-explicit-any */
3
+
4
+ import {
5
+ ConjuctionClause,
6
+ RelationalOperator,
7
+ FilterValueType,
8
+ SortSequence,
9
+ } from '../enums/dsq.enum';
10
+ import { JoinType, QueryType } from '../enums/query.enum';
11
+ import { LookUpDetails } from './data-source-queries.class';
12
+
13
+ export class APIQuery {
14
+ QueryObjectID: string | any;
15
+ QueryType: QueryType | any;
16
+ Joins: JoinDetails[];
17
+ WhereClause: APIFilterCriteria;
18
+
19
+ constructor() {
20
+ this.Joins = new Array<JoinDetails>();
21
+ this.WhereClause = new APIFilterCriteria();
22
+ }
23
+ }
24
+
25
+ export class APIInsertQuery extends APIQuery {
26
+ Values: APIValueSets[] = [];
27
+ }
28
+
29
+ export class APIUpdateQuery extends APIQuery {
30
+ Values: APIValueSets[] = [];
31
+ }
32
+
33
+ export class APIDeleteQuery extends APIQuery {}
34
+
35
+ export class APISelectQuery extends APIQuery {
36
+ ResultField_AppfieldIds: string[] = [];
37
+ Sort: APISort[] = [];
38
+ Distinct: boolean = false;
39
+ NoLock: boolean = false;
40
+ TopCount?: number;
41
+ LoadLookUpValues: boolean = false;
42
+ }
43
+
44
+ export class JoinDetails {
45
+ JoinType: JoinType | any;
46
+ Relationship: ChildRelationShip | any;
47
+ }
48
+
49
+ export class ChildRelationShip {
50
+ RelSourceObjectID: string | any;
51
+ RelSourceFieldID: string | any;
52
+ RelTargetObjectID: string | any;
53
+ RelTargetFieldID: string | any;
54
+ LocalId!: string;
55
+ childDetails!: LookUpDetails;
56
+ }
57
+
58
+ export class APIFilterCriteria {
59
+ Filters: APIFilter[] | any;
60
+ FilterLogic: string | any;
61
+ }
62
+
63
+ export class APIFilter {
64
+ ConjuctionClause: ConjuctionClause | any;
65
+ FieldID: string | any;
66
+ RelationalOperator: RelationalOperator | any;
67
+ ValueType: FilterValueType | any;
68
+ value: string | any;
69
+ Sequence: number | any;
70
+ GroupID: number | any;
71
+ parameterName: string | any;
72
+ Value: string | any;
73
+ }
74
+
75
+ export class APIValueSets {
76
+ AppFieldID: string | any;
77
+ Value: string | any;
78
+ }
79
+
80
+ export class APISort {
81
+ ID: string | any;
82
+ FieldID: string | any;
83
+ SortSequence: SortSequence | any;
84
+ Sequence: number | any;
85
+ }
86
+
87
+ export class APIParameters {
88
+ ID: string | any;
89
+ ParameterName: string | any;
90
+ DataSourceQueryID: string | any;
91
+ MappingFieldName: string | any;
92
+ }
@@ -0,0 +1,87 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+
3
+ import { ObjectCreationType } from '../enums/dsq.enum';
4
+ import { DeploymentStatus } from '../enums/permission.enum';
5
+ import { ChildRelationShip } from './api-query.class';
6
+ import {
7
+ Configurations,
8
+ EmailTemplate,
9
+ Profile,
10
+ Resources,
11
+ Role,
12
+ } from './common.class';
13
+ import { AppFields, DataSourceQueries } from './data-source-queries.class';
14
+
15
+ export class Application {
16
+ ID: string | any;
17
+ AppName: string | any;
18
+ DisplayName: string | any;
19
+ PlatformVersion: string | any;
20
+ AppVersion: string | any;
21
+ Description: string | any;
22
+ AppObjects: AppObject[] = [];
23
+ AppScreens: AppScreen[] = [];
24
+ AppMenus: AppMenu[] = [];
25
+ AppConfigurations: Configurations[] = [];
26
+ Roles?: Role[] = [];
27
+ Profiles?: Profile[] = [];
28
+ WorkFlows: any[] = [];
29
+ Plugins: any[] = [];
30
+ }
31
+
32
+ export class AppObject {
33
+ ID: string | any;
34
+ ObjectName: string | any;
35
+ DisplayName: string | any;
36
+ Description: string | any;
37
+ EnableTracking!: boolean | false;
38
+ AllowSearchable!: boolean | false;
39
+ CreationType: ObjectCreationType | any;
40
+ AllowReports!: boolean | false;
41
+ AllowActivities!: boolean | false;
42
+ AllowSharing!: boolean | false;
43
+ DeploymentStatus: DeploymentStatus | any;
44
+ Fields: AppFields[] = [];
45
+ ChildRelationShips: ChildRelationShip[] = [];
46
+ DataSourceQueries: DataSourceQueries[] = [];
47
+ SystemDBTableName: string | any;
48
+ AccessList: ObjectAccess[] = [];
49
+ EmailTemplates: EmailTemplate[] = [];
50
+ Resources: Resources[] = [];
51
+ IsSystem!: boolean | false;
52
+ IsVisible!: boolean | false;
53
+ IsDeprecated!: boolean | false;
54
+ ObjectID_Tosave: string | any;
55
+ }
56
+
57
+ export class ObjectAccess {
58
+ ID!: string;
59
+ ProfileID!: Profile;
60
+ IsVisible!: boolean;
61
+ IsReadOnly!: boolean;
62
+ CanCreate!: boolean;
63
+ CanEdit!: boolean;
64
+ CanDelete!: boolean;
65
+ }
66
+
67
+ export class AppMenu {
68
+ ID: string | any;
69
+ MenuName: string | any;
70
+ DisplayName: string | any;
71
+ ScreenID: string | any;
72
+ ShortCut: string | any;
73
+ Icon: string | any;
74
+ ParentID?: number;
75
+ Sequence?: number;
76
+ Url: string | any;
77
+ }
78
+
79
+ export class AppScreen {
80
+ ID: string | any;
81
+ Name: string | any;
82
+ Description: string | any;
83
+ DataSourceQuery: DataSourceQueries | any;
84
+ Container: string | any;
85
+ ScreenType: number | any;
86
+ DataSourceQueryID: string | any;
87
+ }
@@ -0,0 +1,30 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+
3
+ export class Role {
4
+ ID: string | any;
5
+ RoleName: string | any;
6
+ Description: string | any;
7
+ ParentRole: Role | any;
8
+ }
9
+
10
+ export class Configurations {
11
+ ID: string | any;
12
+ Setting_Key: string | any;
13
+ Value: string | any;
14
+ }
15
+
16
+ export class Profile {
17
+ ID!: string;
18
+ ProfileName!: string;
19
+ Description!: string;
20
+ }
21
+
22
+ export class Resources {
23
+ ID!: string;
24
+ Value!: string;
25
+ }
26
+
27
+ export class EmailTemplate {
28
+ ID!: string;
29
+ Template!: string;
30
+ }
@@ -0,0 +1,114 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+
3
+ import { DataTypes } from '../enums/controllers.enum';
4
+ import {
5
+ SortSequence,
6
+ ConjuctionClause,
7
+ RelationalOperator,
8
+ ObjectCreationType,
9
+ } from '../enums/dsq.enum';
10
+ import { AppObject } from './app-object.class';
11
+ import { Profile } from './common.class';
12
+
13
+ export class DataSourceQueries {
14
+ ID!: string;
15
+ ObjectID!: AppObject;
16
+ ObjectID_Tosave!: string;
17
+ QueryName!: string;
18
+ DisplayName!: string;
19
+ Fields: DataSourceQueries_Fields[] = [];
20
+ Filters!: FilterCriteria;
21
+ Sort: Sort[] = [];
22
+ Parameters: Parameters[] = [];
23
+ }
24
+
25
+ export class DataSourceQueries_Fields {
26
+ Field!: AppFields;
27
+ SeqNo!: number;
28
+ Field_GridAttributes!: string;
29
+ LookupDetails!: string;
30
+ }
31
+
32
+ export class Parameters {
33
+ ID!: string;
34
+ ParameterName!: string;
35
+ DataSourceQueryID!: string;
36
+ MappingFieldName!: string;
37
+ }
38
+
39
+ export class Sort {
40
+ ID!: string;
41
+ Field!: AppFields;
42
+ SortSequence!: SortSequence;
43
+ Sequence!: number;
44
+ }
45
+
46
+ export class FilterCriteria {
47
+ Filters!: Filter;
48
+ FilterLogic!: string;
49
+ }
50
+
51
+ export class Filter {
52
+ ID!: string;
53
+ ConjuctionClause!: ConjuctionClause;
54
+ Field!: string;
55
+ RelationalOperator!: RelationalOperator;
56
+ ValueType: any;
57
+ value!: string;
58
+ Sequence!: number;
59
+ GroupID!: number;
60
+ }
61
+
62
+ export class AppFields {
63
+ ID!: string;
64
+ ObjectID!: AppObject;
65
+ FieldName!: string;
66
+ DisplayName!: string;
67
+ FieldType!: FieldType;
68
+ Description!: string;
69
+ CreationType!: ObjectCreationType;
70
+ IsRequired!: boolean;
71
+ IsUnique!: boolean;
72
+ IsSearchable!: boolean;
73
+ IsConfidential!: boolean;
74
+ SystemDBFieldName!: string;
75
+ IsSystem!: boolean;
76
+ IsVisible!: boolean;
77
+ IsDeprecated!: boolean;
78
+ LookUpDetails!: LookUpDetails;
79
+ AccessList!: FieldAccess[];
80
+ Data!: string;
81
+ IsPrimaryKey!: boolean;
82
+ Field!: AppFields;
83
+ }
84
+
85
+ export class FieldType {
86
+ DataType!: DataTypes;
87
+ RelationalOperator!: RelationalOperator[];
88
+ }
89
+
90
+ export class LookUpDetails {
91
+ LookupObject!: string;
92
+ LookupField!: string;
93
+ DisplayField!: string;
94
+ }
95
+
96
+ export class FieldAccess {
97
+ ID!: string;
98
+ ProfileID!: Profile;
99
+ IsVisible!: boolean;
100
+ IsReadOnly!: boolean;
101
+ }
102
+
103
+ export class UpdateQueryParameter {
104
+ FieldName!: string;
105
+ FieldValue!: string | number;
106
+ }
107
+
108
+ export class ScreenParameter {
109
+ event: any;
110
+ formJson: any;
111
+ formIOObject: any;
112
+ serviceList: any;
113
+ dailogRef: any;
114
+ }