@techextensor/tab-core-utility 2.1.7 → 2.1.8

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/esm2022/index.mjs +64 -0
  2. package/esm2022/lib/tab-core-utility/app/constants/api-constants.mjs +33 -0
  3. package/esm2022/lib/tab-core-utility/app/constants/common.mjs +25 -0
  4. package/esm2022/lib/tab-core-utility/app/constants/error-messages.mjs +13 -0
  5. package/esm2022/lib/tab-core-utility/app/constants/storage-constants.mjs +16 -0
  6. package/esm2022/lib/tab-core-utility/app/crud/tab-delete.service.mjs +145 -0
  7. package/esm2022/lib/tab-core-utility/app/crud/tab-get.service.mjs +131 -0
  8. package/esm2022/lib/tab-core-utility/app/crud/tab-insert.service.mjs +77 -0
  9. package/esm2022/lib/tab-core-utility/app/crud/tab-update.service.mjs +105 -0
  10. package/esm2022/lib/tab-core-utility/app/crud/tab-workflow.service.mjs +43 -0
  11. package/esm2022/lib/tab-core-utility/app/enums/controllers.enum.mjs +26 -0
  12. package/esm2022/lib/tab-core-utility/app/enums/dsq.enum.mjs +48 -0
  13. package/esm2022/lib/tab-core-utility/app/enums/permission.enum.mjs +20 -0
  14. package/esm2022/lib/tab-core-utility/app/enums/query.enum.mjs +14 -0
  15. package/esm2022/lib/tab-core-utility/app/enums/workflow.enum.mjs +37 -0
  16. package/esm2022/lib/tab-core-utility/app/helpers/common/app.helpers.mjs +68 -0
  17. package/esm2022/lib/tab-core-utility/app/helpers/common/dsq.helpers.mjs +70 -0
  18. package/esm2022/lib/tab-core-utility/app/helpers/common/req-res.helpers.mjs +64 -0
  19. package/esm2022/lib/tab-core-utility/app/helpers/common/where-clause.helpers.mjs +208 -0
  20. package/esm2022/lib/tab-core-utility/app/helpers/screen/forms.helpers.mjs +38 -0
  21. package/esm2022/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.mjs +78 -0
  22. package/esm2022/lib/tab-core-utility/app/helpers/screen/grid.helpers.mjs +112 -0
  23. package/esm2022/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.mjs +77 -0
  24. package/esm2022/lib/tab-core-utility/app/helpers/screen/plugin.helpers.mjs +55 -0
  25. package/esm2022/lib/tab-core-utility/app/helpers/screen/screen.helpers.mjs +26 -0
  26. package/esm2022/lib/tab-core-utility/app/interfaces/auth.interface.mjs +2 -0
  27. package/esm2022/lib/tab-core-utility/app/interfaces/common-api.interface.mjs +2 -0
  28. package/esm2022/lib/tab-core-utility/app/interfaces/grid.interface.mjs +3 -0
  29. package/esm2022/lib/tab-core-utility/app/interfaces/orgInfo.interface.mjs +2 -0
  30. package/esm2022/lib/tab-core-utility/app/interfaces/schema.interface.mjs +2 -0
  31. package/esm2022/lib/tab-core-utility/app/interfaces/user.interface.mjs +2 -0
  32. package/esm2022/lib/tab-core-utility/app/models/api-query.class.mjs +47 -0
  33. package/esm2022/lib/tab-core-utility/app/models/app-object.class.mjs +30 -0
  34. package/esm2022/lib/tab-core-utility/app/models/common.class.mjs +12 -0
  35. package/esm2022/lib/tab-core-utility/app/models/data-source-queries.class.mjs +31 -0
  36. package/esm2022/lib/tab-core-utility/app/utils/filter.util.mjs +75 -0
  37. package/esm2022/lib/tab-core-utility/app/utils/form-builder.util.mjs +39 -0
  38. package/esm2022/lib/tab-core-utility/app/utils/json.util.mjs +138 -0
  39. package/esm2022/lib/tab-core-utility/app/utils/operators.util.mjs +129 -0
  40. package/esm2022/lib/tab-core-utility/app/utils/req-res.util.mjs +168 -0
  41. package/esm2022/lib/tab-core-utility/app/utils/tab-app.util.mjs +99 -0
  42. package/esm2022/lib/tab-core-utility/auth/auth.service.mjs +74 -0
  43. package/esm2022/lib/tab-core-utility/auth/idb-storage.service.mjs +69 -0
  44. package/esm2022/lib/tab-core-utility/auth/local-storage.service.mjs +52 -0
  45. package/esm2022/lib/tab-core-utility/auth/session-storage.service.mjs +52 -0
  46. package/esm2022/lib/tab-core-utility/core/error-handler/error-handler-interceptor.service.mjs +26 -0
  47. package/esm2022/lib/tab-core-utility/core/error-handler/error-handler.store.mjs +21 -0
  48. package/esm2022/lib/tab-core-utility/core/error-handler/models/error-handler.state.mjs +5 -0
  49. package/esm2022/lib/tab-core-utility/core/http-client/api-url.token.mjs +4 -0
  50. package/esm2022/lib/tab-core-utility/core/http-client/api.service.mjs +99 -0
  51. package/esm2022/lib/tab-core-utility/core/util/auth.utils.mjs +21 -0
  52. package/esm2022/lib/tab-core-utility/store/auth.store.mjs +43 -0
  53. package/esm2022/lib/tab-core-utility/store/orginfo.store.mjs +42 -0
  54. package/esm2022/lib/tab-core-utility/store/schema.store.mjs +68 -0
  55. package/esm2022/techextensor-tab-core-utility.mjs +5 -0
  56. package/{src/index.ts → index.d.ts} +53 -77
  57. package/lib/tab-core-utility/app/constants/api-constants.d.ts +30 -0
  58. package/lib/tab-core-utility/app/constants/common.d.ts +8 -0
  59. package/lib/tab-core-utility/app/constants/error-messages.d.ts +6 -0
  60. package/lib/tab-core-utility/app/constants/storage-constants.d.ts +15 -0
  61. package/lib/tab-core-utility/app/crud/tab-delete.service.d.ts +51 -0
  62. package/lib/tab-core-utility/app/crud/tab-get.service.d.ts +58 -0
  63. package/lib/tab-core-utility/app/crud/tab-insert.service.d.ts +37 -0
  64. package/lib/tab-core-utility/app/crud/tab-update.service.d.ts +14 -0
  65. package/lib/tab-core-utility/app/crud/tab-workflow.service.d.ts +20 -0
  66. package/lib/tab-core-utility/app/enums/controllers.enum.d.ts +24 -0
  67. package/lib/tab-core-utility/app/enums/dsq.enum.d.ts +42 -0
  68. package/lib/tab-core-utility/app/enums/permission.enum.d.ts +16 -0
  69. package/lib/tab-core-utility/app/enums/query.enum.d.ts +11 -0
  70. package/lib/tab-core-utility/app/enums/workflow.enum.d.ts +30 -0
  71. package/lib/tab-core-utility/app/helpers/common/app.helpers.d.ts +31 -0
  72. package/lib/tab-core-utility/app/helpers/common/dsq.helpers.d.ts +32 -0
  73. package/lib/tab-core-utility/app/helpers/common/req-res.helpers.d.ts +62 -0
  74. package/lib/tab-core-utility/app/helpers/common/where-clause.helpers.d.ts +82 -0
  75. package/lib/tab-core-utility/app/helpers/screen/forms.helpers.d.ts +11 -0
  76. package/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.d.ts +33 -0
  77. package/lib/tab-core-utility/app/helpers/screen/grid.helpers.d.ts +63 -0
  78. package/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.d.ts +38 -0
  79. package/lib/tab-core-utility/app/helpers/screen/plugin.helpers.d.ts +25 -0
  80. package/lib/tab-core-utility/app/helpers/screen/screen.helpers.d.ts +11 -0
  81. package/{src/lib/tab-core-utility/app/interfaces/auth.interface.ts → lib/tab-core-utility/app/interfaces/auth.interface.d.ts} +15 -18
  82. package/lib/tab-core-utility/app/interfaces/common-api.interface.d.ts +24 -0
  83. package/lib/tab-core-utility/app/interfaces/grid.interface.d.ts +110 -0
  84. package/lib/tab-core-utility/app/interfaces/orgInfo.interface.d.ts +31 -0
  85. package/lib/tab-core-utility/app/interfaces/schema.interface.d.ts +11 -0
  86. package/lib/tab-core-utility/app/interfaces/user.interface.d.ts +84 -0
  87. package/lib/tab-core-utility/app/models/api-query.class.d.ts +69 -0
  88. package/lib/tab-core-utility/app/models/app-object.class.d.ts +74 -0
  89. package/lib/tab-core-utility/app/models/common.class.d.ts +24 -0
  90. package/lib/tab-core-utility/app/models/data-source-queries.class.d.ts +95 -0
  91. package/lib/tab-core-utility/app/utils/filter.util.d.ts +30 -0
  92. package/lib/tab-core-utility/app/utils/form-builder.util.d.ts +13 -0
  93. package/lib/tab-core-utility/app/utils/json.util.d.ts +25 -0
  94. package/lib/tab-core-utility/app/utils/operators.util.d.ts +21 -0
  95. package/lib/tab-core-utility/app/utils/req-res.util.d.ts +61 -0
  96. package/lib/tab-core-utility/app/utils/tab-app.util.d.ts +48 -0
  97. package/lib/tab-core-utility/auth/auth.service.d.ts +53 -0
  98. package/lib/tab-core-utility/auth/idb-storage.service.d.ts +14 -0
  99. package/lib/tab-core-utility/auth/local-storage.service.d.ts +22 -0
  100. package/lib/tab-core-utility/auth/session-storage.service.d.ts +22 -0
  101. package/lib/tab-core-utility/core/error-handler/error-handler-interceptor.service.d.ts +3 -0
  102. package/lib/tab-core-utility/core/error-handler/error-handler.store.d.ts +10 -0
  103. package/lib/tab-core-utility/core/error-handler/models/error-handler.state.d.ts +5 -0
  104. package/lib/tab-core-utility/core/http-client/api-url.token.d.ts +3 -0
  105. package/lib/tab-core-utility/core/http-client/api.service.d.ts +65 -0
  106. package/lib/tab-core-utility/core/util/auth.utils.d.ts +9 -0
  107. package/lib/tab-core-utility/store/auth.store.d.ts +19 -0
  108. package/lib/tab-core-utility/store/orginfo.store.d.ts +22 -0
  109. package/lib/tab-core-utility/store/schema.store.d.ts +32 -0
  110. package/package.json +31 -18
  111. package/.eslintrc.json +0 -92
  112. package/README.md +0 -7
  113. package/jest.config.ts +0 -22
  114. package/ng-package.json +0 -7
  115. package/project.json +0 -42
  116. package/src/lib/tab-core-utility/app/constants/api-constants.ts +0 -33
  117. package/src/lib/tab-core-utility/app/constants/common.ts +0 -34
  118. package/src/lib/tab-core-utility/app/constants/error-messages.ts +0 -21
  119. package/src/lib/tab-core-utility/app/constants/storage-constants.ts +0 -17
  120. package/src/lib/tab-core-utility/app/crud/tab-delete.service.ts +0 -144
  121. package/src/lib/tab-core-utility/app/crud/tab-get.service.ts +0 -160
  122. package/src/lib/tab-core-utility/app/crud/tab-insert.service.ts +0 -75
  123. package/src/lib/tab-core-utility/app/crud/tab-update.service.ts +0 -105
  124. package/src/lib/tab-core-utility/app/crud/tab-workflow.service.ts +0 -39
  125. package/src/lib/tab-core-utility/app/enums/controllers.enum.ts +0 -24
  126. package/src/lib/tab-core-utility/app/enums/dsq.enum.ts +0 -46
  127. package/src/lib/tab-core-utility/app/enums/permission.enum.ts +0 -18
  128. package/src/lib/tab-core-utility/app/enums/query.enum.ts +0 -12
  129. package/src/lib/tab-core-utility/app/enums/workflow.enum.ts +0 -35
  130. package/src/lib/tab-core-utility/app/helpers/common/app.helpers.ts +0 -65
  131. package/src/lib/tab-core-utility/app/helpers/common/dsq.helpers.ts +0 -80
  132. package/src/lib/tab-core-utility/app/helpers/common/req-res.helpers.ts +0 -75
  133. package/src/lib/tab-core-utility/app/helpers/common/where-clause.helpers.ts +0 -262
  134. package/src/lib/tab-core-utility/app/helpers/screen/forms.helpers.ts +0 -33
  135. package/src/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.ts +0 -88
  136. package/src/lib/tab-core-utility/app/helpers/screen/grid.helpers.ts +0 -113
  137. package/src/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.ts +0 -74
  138. package/src/lib/tab-core-utility/app/helpers/screen/plugin.helpers.ts +0 -52
  139. package/src/lib/tab-core-utility/app/helpers/screen/screen.helpers.ts +0 -20
  140. package/src/lib/tab-core-utility/app/interfaces/common-api.interface.ts +0 -27
  141. package/src/lib/tab-core-utility/app/interfaces/grid.interface.ts +0 -118
  142. package/src/lib/tab-core-utility/app/interfaces/orgInfo.interface.ts +0 -34
  143. package/src/lib/tab-core-utility/app/interfaces/schema.interface.ts +0 -11
  144. package/src/lib/tab-core-utility/app/interfaces/user.interface.ts +0 -91
  145. package/src/lib/tab-core-utility/app/models/api-query.class.ts +0 -92
  146. package/src/lib/tab-core-utility/app/models/app-object.class.ts +0 -87
  147. package/src/lib/tab-core-utility/app/models/common.class.ts +0 -30
  148. package/src/lib/tab-core-utility/app/models/data-source-queries.class.ts +0 -114
  149. package/src/lib/tab-core-utility/app/utils/filter.util.ts +0 -78
  150. package/src/lib/tab-core-utility/app/utils/form-builder.util.ts +0 -31
  151. package/src/lib/tab-core-utility/app/utils/json.util.ts +0 -137
  152. package/src/lib/tab-core-utility/app/utils/operators.util.ts +0 -129
  153. package/src/lib/tab-core-utility/app/utils/req-res.util.ts +0 -189
  154. package/src/lib/tab-core-utility/app/utils/tab-app.util.ts +0 -131
  155. package/src/lib/tab-core-utility/auth/auth.service.spec.ts +0 -167
  156. package/src/lib/tab-core-utility/auth/auth.service.ts +0 -91
  157. package/src/lib/tab-core-utility/auth/idb-storage.service.ts +0 -77
  158. package/src/lib/tab-core-utility/auth/local-storage.service.spec.ts +0 -47
  159. package/src/lib/tab-core-utility/auth/local-storage.service.ts +0 -46
  160. package/src/lib/tab-core-utility/auth/session-storage.service.spec.ts +0 -47
  161. package/src/lib/tab-core-utility/auth/session-storage.service.ts +0 -46
  162. package/src/lib/tab-core-utility/core/error-handler/error-handler-interceptor.service.ts +0 -32
  163. package/src/lib/tab-core-utility/core/error-handler/error-handler.store.spec.ts +0 -16
  164. package/src/lib/tab-core-utility/core/error-handler/error-handler.store.ts +0 -26
  165. package/src/lib/tab-core-utility/core/error-handler/models/error-handler.state.ts +0 -9
  166. package/src/lib/tab-core-utility/core/http-client/api-url.token.ts +0 -4
  167. package/src/lib/tab-core-utility/core/http-client/api.service.spec.ts +0 -18
  168. package/src/lib/tab-core-utility/core/http-client/api.service.ts +0 -105
  169. package/src/lib/tab-core-utility/core/util/auth.utils.ts +0 -22
  170. package/src/lib/tab-core-utility/store/auth.store.ts +0 -54
  171. package/src/lib/tab-core-utility/store/orginfo.store.ts +0 -57
  172. package/src/lib/tab-core-utility/store/schema.store.ts +0 -85
  173. package/src/test-setup.ts +0 -8
  174. package/tsconfig.json +0 -29
  175. package/tsconfig.lib.json +0 -17
  176. package/tsconfig.lib.prod.json +0 -7
  177. package/tsconfig.spec.json +0 -16
@@ -0,0 +1,82 @@
1
+ import { APIFilterCriteria } from '../../models/api-query.class';
2
+ import * as i0 from "@angular/core";
3
+ export declare class WhereClauseHelper {
4
+ /**
5
+ * Binds the where clause for deleting records based on field, value, field name, and CRUD table name
6
+ * @param fields The fields to bind the where clause
7
+ * @param value The value to match in the where clause
8
+ * @param fieldName The field name to match in the where clause
9
+ * @param crudTableName The CRUD table name for the where clause
10
+ * @returns The bound where clause for delete operation
11
+ */
12
+ bindWhereClauseForDelete(fields: any, value: any, fieldName: string, crudTableName: string): import("rxjs").Observable<APIFilterCriteria>;
13
+ /**
14
+ * Binds the where clause for deleting records with multiple primary keys
15
+ * @param data The data containing primary key values
16
+ * @param fieldName The field name of the primary key
17
+ * @param crudTableName The CRUD table name for the where clause
18
+ * @returns The bound where clause for delete operation with multiple primary keys
19
+ */
20
+ bindWhereClauseForDeleteWithMultiplePrimaryKeys(data: any, fieldName: string, crudTableName: string): APIFilterCriteria;
21
+ /**
22
+ * Binds the where clause for an insert operation
23
+ * @returns The bound where clause for insert operation
24
+ */
25
+ bindWhereClauseForInsert(): APIFilterCriteria;
26
+ /**
27
+ * Binds an empty where clause
28
+ * @returns The bound empty where clause
29
+ */
30
+ bindWhereClauseEmpty(): APIFilterCriteria;
31
+ /**
32
+ * Binds the where clause based on provided parameters
33
+ * @param fields The fields to bind the where clause
34
+ * @param value The value to match in the where clause
35
+ * @param fieldName The field name to match in the where clause
36
+ * @param crudTableName The CRUD table name for the where clause
37
+ * @returns The bound where clause
38
+ */
39
+ private bindWhereClause;
40
+ /**
41
+ * Binds the where clause for deleting records with multiple primary keys
42
+ * @param data The data containing primary key values
43
+ * @param primaryKeys The array of primary key fields
44
+ * @param crudTableName The CRUD table name for the where clause
45
+ * @returns The bound where clause for delete operation with multiple primary keys
46
+ */
47
+ bindWhereClauseForMultiplePrimaryKeys(data: any, primaryKeys: any, crudTableName: string): APIFilterCriteria;
48
+ /**
49
+ * Binds the where clause for updating records
50
+ * @param tableName The name of the table to update
51
+ * @param queryFieldsArray The array of fields and values for the update query
52
+ * @returns The bound where clause for update operation
53
+ */
54
+ bindWhereClauseForUpdate(tableName: string, queryFieldsArray: any): APIFilterCriteria;
55
+ /**
56
+ * Binds the where clause for deleting records by table and primary key
57
+ * @param tableName The name of the table from which to delete records
58
+ * @param primaryKey The name of the primary key field
59
+ * @param primaryKeyValue The value of the primary key
60
+ * @returns The bound where clause for delete operation using table and primary key
61
+ */
62
+ bindWhereClauseForDeleteByTable(tableName: string, primaryKey: string, primaryKeyValue: string): APIFilterCriteria;
63
+ /**
64
+ * Binds the where clause for deleting records using IN operator by table
65
+ * @param tableName The name of the table from which to delete records
66
+ * @param primaryKey The name of the primary key field
67
+ * @param values The array of values for the IN operator
68
+ * @returns The bound where clause for delete operation using IN operator and table
69
+ */
70
+ bindWhereClauseForDeleteUsingInOperatorByTable(tableName: string, primaryKey: string, values: []): APIFilterCriteria;
71
+ /**
72
+ * Binds the where clause for updating records in a grid
73
+ * @param Fields The fields to bind the where clause
74
+ * @param value The value to match in the where clause
75
+ * @param fieldName The field name to match in the where clause
76
+ * @param crudTableName The CRUD table name for the where clause
77
+ * @returns The bound where clause for update operation in a grid
78
+ */
79
+ bindWhereClauseForUpdateGrid(Fields: any, value: any, fieldName: string, crudTableName: string): import("rxjs").Observable<APIFilterCriteria>;
80
+ static ɵfac: i0.ɵɵFactoryDeclaration<WhereClauseHelper, never>;
81
+ static ɵprov: i0.ɵɵInjectableDeclaration<WhereClauseHelper>;
82
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class FormDataHelper {
3
+ /**
4
+ * Sets form data based on the provided data object.
5
+ * @param data$ An Observable emitting the data object containing form data.
6
+ * @returns An Observable emitting an object containing the modified form data.
7
+ */
8
+ setFormData(data: any): any;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormDataHelper, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormDataHelper>;
11
+ }
@@ -0,0 +1,33 @@
1
+ import { ColumnDetailModel } from '../../interfaces/grid.interface';
2
+ import * as i0 from "@angular/core";
3
+ export declare class GridColumnDataHelper {
4
+ private readonly gridHelper;
5
+ /**
6
+ * Retrieves column data based on the provided fields.
7
+ * @param fields The fields to generate column data from.
8
+ * @returns An Observable emitting an array of column data.
9
+ */
10
+ getColumnData(fields: any): import("rxjs").Observable<ColumnDetailModel[]>;
11
+ /**
12
+ * Maps field data to a ColumnDetailModel.
13
+ * @param field The field data to map.
14
+ * @returns The mapped ColumnDetailModel.
15
+ */
16
+ private mapToColumnDetailModel;
17
+ /**
18
+ * Retrieves the renderer value based on the provided key.
19
+ * @param key The key to retrieve the renderer value for.
20
+ * @returns The renderer value.
21
+ */
22
+ private getRendererValue;
23
+ /**
24
+ * Renderer function for rendering row links.
25
+ * @param row The row number.
26
+ * @param column The column information.
27
+ * @param value The value to render.
28
+ * @returns The HTML string for rendering the row link.
29
+ */
30
+ private rowLinkRenderer;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridColumnDataHelper, never>;
32
+ static ɵprov: i0.ɵɵInjectableDeclaration<GridColumnDataHelper>;
33
+ }
@@ -0,0 +1,63 @@
1
+ import { AppObject } from '../../models/app-object.class';
2
+ import { JqWidghtModel } from '../../interfaces/grid.interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GridHelper {
5
+ /**
6
+ * Generates a grid schema for the master app object.
7
+ * @param masterAppObj The master app object.
8
+ * @param dsqID The data source query ID.
9
+ * @returns The generated grid schema.
10
+ */
11
+ generateGridSchema(masterAppObj: AppObject, dsqID: any): {
12
+ label: any;
13
+ type: string;
14
+ key: any;
15
+ input: boolean;
16
+ redrawOn: any;
17
+ 'customOptions.dataSourceQueryId': any;
18
+ };
19
+ /**
20
+ * Generates a grid schema for the child relationship.
21
+ * @param childRel The child relationship.
22
+ * @param masterAppObj The master app object.
23
+ * @returns The generated child grid schema.
24
+ */
25
+ generateChildGridSchema(childRel: any, masterAppObj: AppObject): import("rxjs").Observable<{}> | {
26
+ label: any;
27
+ type: string;
28
+ key: any;
29
+ input: boolean;
30
+ redrawOn: any;
31
+ 'customOptions.dataSourceQueryId': any;
32
+ logic: {
33
+ name: string;
34
+ trigger: {
35
+ type: string;
36
+ javascript: string;
37
+ };
38
+ actions: {
39
+ name: string;
40
+ type: string;
41
+ property: {
42
+ label: string;
43
+ value: string;
44
+ type: string;
45
+ };
46
+ text: string;
47
+ }[];
48
+ }[];
49
+ };
50
+ /**
51
+ * Retrieves the default grid configuration.
52
+ * @returns The default grid configuration.
53
+ */
54
+ getDefaultGridConfiguration(): JqWidghtModel | null;
55
+ /**
56
+ * Determines the column type based on the data type.
57
+ * @param dataType The data type.
58
+ * @returns The column type.
59
+ */
60
+ getColumnType(dataType: number): string;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridHelper, never>;
62
+ static ɵprov: i0.ɵɵInjectableDeclaration<GridHelper>;
63
+ }
@@ -0,0 +1,38 @@
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MediaUploadHelper {
4
+ private readonly apiService;
5
+ /**
6
+ * Uploads media object to the server.
7
+ * @param mediaObject The media object to upload.
8
+ * @returns An Observable that emits the response from the server.
9
+ */
10
+ uploadMediaFile(mediaObject: any): Observable<any>;
11
+ /**
12
+ * Retrieves a file from the server by its media ID.
13
+ * @param mediaId The ID of the media file to retrieve.
14
+ * @returns An Observable that emits the file as a Blob.
15
+ */
16
+ getFileByMediaId(mediaId: number, params?: any): Observable<Blob>;
17
+ /**
18
+ * Downloads all files from the given URL.
19
+ * @param endPointName The URL to download files from.
20
+ * @returns An Observable that emits the downloaded files as a Blob.
21
+ */
22
+ downloadAllFiles(endPointName: any): Observable<Blob>;
23
+ /**
24
+ * Downloads PDF files from the given URL.
25
+ * @param endPointName The URL to download PDF files from.
26
+ * @param data The data to send along with the request.
27
+ * @returns An Observable that emits the downloaded PDF files as a Blob.
28
+ */
29
+ downloadPdfFiles(endPointName: any, data: any): Observable<Blob>;
30
+ /**
31
+ * Retrieves an image from the server by its media ID.
32
+ * @param mediaId The ID of the media file to retrieve.
33
+ * @returns An Observable that emits the image as a Blob.
34
+ */
35
+ getImageByMediaId(mediaId: any, params?: any): Observable<Blob>;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<MediaUploadHelper, never>;
37
+ static ɵprov: i0.ɵɵInjectableDeclaration<MediaUploadHelper>;
38
+ }
@@ -0,0 +1,25 @@
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PluginHelper {
4
+ private readonly apiService;
5
+ /**
6
+ * Uploads a plugin object to the server.
7
+ * @param pluginObject The plugin object to upload.
8
+ * @returns An Observable emitting the response from the server.
9
+ */
10
+ uploadPlugin(pluginObject: any): Observable<any>;
11
+ /**
12
+ * Retrieves a file from the server by its ID.
13
+ * @param Id The ID of the file to retrieve.
14
+ * @returns An Observable emitting the file as a Blob.
15
+ */
16
+ getFile(Id: number, params?: any): Observable<Blob>;
17
+ /**
18
+ * Retrieves all plugins by their type from the server.
19
+ * @param pluginType The type of plugins to retrieve.
20
+ * @returns An Observable emitting the response from the server.
21
+ */
22
+ getAll(pluginType: number, params?: any): Observable<any>;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<PluginHelper, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<PluginHelper>;
25
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScreenHelper {
3
+ /**
4
+ * Retrieves screen data based on the provided screen ID.
5
+ * @param screenId The ID of the screen to retrieve.
6
+ * @returns The screen data if found, otherwise null.
7
+ */
8
+ getScreen(screenId: string): any;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScreenHelper, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<ScreenHelper>;
11
+ }
@@ -1,18 +1,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
- }
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
+ }
@@ -0,0 +1,24 @@
1
+ export interface ApiResponse {
2
+ requestId: string;
3
+ isSuccess: boolean;
4
+ result: any;
5
+ errors: string[];
6
+ }
7
+ export interface RecordInfo {
8
+ isSystemRecord: boolean | null;
9
+ blueprintId: string | null;
10
+ blueprintStatusId: string | null;
11
+ recordId: string;
12
+ primaryKey: string;
13
+ }
14
+ export interface CommonApiResponse {
15
+ RequestId: string;
16
+ IsSuccess: boolean;
17
+ Result: string | any[];
18
+ StatusCode: string;
19
+ RecordAffectted: number;
20
+ TotalRecords: number;
21
+ TotalExecutionTime: number;
22
+ Log: any[];
23
+ Errors: any[];
24
+ }
@@ -0,0 +1,110 @@
1
+ export interface JqWidghtModel {
2
+ width?: number | any;
3
+ height?: number | any;
4
+ source?: SourceModel;
5
+ columns?: Array<ColumnDetailModel>;
6
+ isPageable?: boolean;
7
+ isAutoheight?: boolean;
8
+ isSortable?: boolean;
9
+ selectionmode?: string;
10
+ columngroups?: Array<ColumngroupModel>;
11
+ isAltRow?: boolean;
12
+ isenabletooltips?: boolean;
13
+ iseditable?: boolean;
14
+ sourceId?: string;
15
+ typeOfData?: string;
16
+ actualData?: Array<any>;
17
+ dataField?: Array<DataFieldsModel>;
18
+ actionArray?: Array<ActionModel>;
19
+ isShowToolbar?: boolean;
20
+ isShowStatusBar?: boolean;
21
+ actionsIn?: string;
22
+ isFilterable?: boolean;
23
+ isSortbackGroungColor?: boolean;
24
+ isautoshowfiltericon?: boolean;
25
+ isshowfilterrow?: boolean;
26
+ pagermode?: string;
27
+ isGroupable?: boolean;
28
+ isRowlevelEdit?: boolean;
29
+ isRowlevelDelete?: boolean;
30
+ isRowlevelView?: boolean;
31
+ primaryKeycolumnName?: string;
32
+ gridId?: string;
33
+ id?: string;
34
+ groups?: any;
35
+ groupColumns?: string;
36
+ gridColumnArr?: Array<string> | any;
37
+ theme?: string;
38
+ pagesizeoptions?: string;
39
+ defaultPageSize?: string;
40
+ currentScreenId?: string;
41
+ customNavigate?: string;
42
+ gridName?: string;
43
+ gridState?: string | any;
44
+ iscolumnsreorder?: boolean;
45
+ isStateB?: boolean;
46
+ addScreenId?: string;
47
+ editScreenId?: string;
48
+ viewScreenId?: string;
49
+ }
50
+ export interface SourceModel {
51
+ datatype?: string;
52
+ datafields?: Array<DataFieldsModel>;
53
+ id?: string;
54
+ localdata?: any;
55
+ pagesize?: string;
56
+ }
57
+ export interface DataFieldsModel {
58
+ name?: string;
59
+ type?: string;
60
+ seq?: number;
61
+ }
62
+ export interface ColumnDetailModel {
63
+ text?: string;
64
+ dataField?: string;
65
+ width?: string;
66
+ cellsalign?: string;
67
+ cellsformat?: string;
68
+ columnType?: string;
69
+ columnGroup?: string;
70
+ editable?: boolean;
71
+ buttonclick?: any;
72
+ renderer?: any;
73
+ columntype?: string;
74
+ filtertype?: string;
75
+ seq?: number;
76
+ align?: string;
77
+ sortable?: boolean;
78
+ hidden?: boolean;
79
+ filterable?: boolean;
80
+ cellsrenderer?: any;
81
+ filterParameter?: string;
82
+ addScreenId?: string;
83
+ editScreenId?: string;
84
+ viewScreenId?: string;
85
+ appFieldId?: string;
86
+ isPrimaryKey?: boolean;
87
+ LookUpDetails?: any;
88
+ dropDownLookup?: any;
89
+ SystemDBFieldName?: any;
90
+ }
91
+ export interface ColumngroupModel {
92
+ text?: string;
93
+ align?: string;
94
+ name?: string;
95
+ }
96
+ export interface ActionModel {
97
+ name?: string;
98
+ imgSrc?: string;
99
+ buttonWidth?: number;
100
+ buttonHeight?: number;
101
+ buttonValue?: string;
102
+ imgPosition?: string;
103
+ textPosition?: string;
104
+ textImageRelation?: string;
105
+ }
106
+ export interface ColumnLevelActions {
107
+ name?: string;
108
+ rowId?: number;
109
+ valueToShow?: string;
110
+ }
@@ -0,0 +1,31 @@
1
+ import { RecordInfo } from "./common-api.interface";
2
+ export interface OrgInfoResponse {
3
+ RequestId: string;
4
+ IsSuccess: boolean;
5
+ Result: Result[];
6
+ StatusCode: string;
7
+ RecordAffectted: number;
8
+ TotalRecords: number;
9
+ TotalExecutionTime: number;
10
+ Log: string[];
11
+ Errors: any[];
12
+ }
13
+ export interface Result {
14
+ RecordInfo: RecordInfo;
15
+ LocaleSettings: string;
16
+ OrganizationName: string;
17
+ ID: string;
18
+ PrimaryContact: any;
19
+ Address: any;
20
+ }
21
+ export interface Info {
22
+ FavIcon: string;
23
+ Org_Brand_Color: string;
24
+ Org_Logo: string;
25
+ Org_Menu_Logo: string;
26
+ ShowSignUp: string;
27
+ TagLine: string;
28
+ profileScreenID: string;
29
+ workFlowName: string;
30
+ OrganizationName: string;
31
+ }
@@ -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,84 @@
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 {};
@@ -0,0 +1,69 @@
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
+ }