@zohodesk/library-platform 1.0.0 → 1.0.2-exp.3

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 (530) hide show
  1. package/es/bc/index.js +3 -0
  2. package/es/bc/list-selection/Properties.js +21 -12
  3. package/es/bc/sort-by/Properties.js +20 -15
  4. package/es/bc/sort-by/index.js +2 -0
  5. package/es/bc/table-column-resizer/Properties.js +1 -1
  6. package/es/bc/zhttp/Properties.js +11 -1
  7. package/es/bc/zhttp/index.js +2 -0
  8. package/es/bc/zlist/Properties.js +15 -3
  9. package/es/bc/zlist/index.js +2 -0
  10. package/es/bc/zrecord/Constants.js +3 -1
  11. package/es/cc/action-icon/Model.js +6 -2
  12. package/es/cc/action-icon/Properties.js +18 -0
  13. package/es/cc/action-location/Properties.js +54 -3
  14. package/es/cc/component/properties/PropertiesConverter.js +23 -0
  15. package/es/cc/empty-state/index.js +1 -0
  16. package/es/cc/fields/field/Properties.js +9 -1
  17. package/es/cc/fields/field/Types.js +16 -16
  18. package/es/cc/fields/index.js +17 -0
  19. package/es/cc/fields/multi-select/Properties.js +1 -1
  20. package/es/cc/fields/pick-list/Properties.js +1 -1
  21. package/es/cc/index.js +3 -1
  22. package/es/cc/table-connected/Properties.js +52 -45
  23. package/es/cc/table-list/Properties.js +109 -324
  24. package/es/cc/table-list/data-types/Header.js +8 -7
  25. package/es/cc/table-list/data-types/RowCursor.js +8 -0
  26. package/es/cc/table-list/model/RowModel.js +2 -4
  27. package/es/cc/table-list/row/Properties.js +15 -10
  28. package/es/desk-frameworks/table-connected/frameworks/TableConnectedFactory.js +4 -1
  29. package/es/desk-frameworks/table-connected/frameworks/TableConnectedView.js +14 -13
  30. package/es/desk-frameworks/table-connected/frameworks/__tests__/TableConnectedFactory.spec.js +453 -0
  31. package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/http-template/getAvailableFields.js +86 -0
  32. package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/http-template/getRecords.js +81 -0
  33. package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/http-template/getSelectedFields.js +32 -0
  34. package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/index.js +11 -0
  35. package/es/index.js +9 -0
  36. package/es/library/behaviours/list-selection/adapters/gateways/Repository.js +1 -1
  37. package/es/library/behaviours/list-selection/adapters/gateways/Service.js +5 -5
  38. package/es/library/behaviours/list-selection/{entities → domain/entities}/ListItemSelection.js +29 -9
  39. package/es/library/behaviours/sort-by/adapters/gateway/Repository.js +1 -1
  40. package/es/library/behaviours/sort-by/adapters/gateway/Service.js +1 -1
  41. package/es/library/behaviours/sort-by/{entities → domain/entities}/SortBy.js +1 -1
  42. package/es/library/behaviours/sort-by/frameworks/ui/SortByBehaviourFactory.js +2 -2
  43. package/es/library/behaviours/text-to-field-click/adapters/gateway/Repository.js +1 -1
  44. package/es/library/behaviours/text-to-field-click/{entities → domain/entities}/FieldEventConverter.js +1 -1
  45. package/es/library/behaviours/text-to-field-click/frameworks/ui/EventHandlersFactory.js +1 -1
  46. package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +1 -1
  47. package/es/library/custom-component/adapters/gateways/service/Service.js +6 -6
  48. package/es/library/custom-component/{usecases → applications}/entities-factory/BehavioursFactory.js +1 -1
  49. package/es/library/custom-component/{usecases → applications}/entities-factory/ComponentFactory.js +3 -3
  50. package/es/library/custom-component/{usecases → applications}/entities-factory/EventHandlersFactory.js +1 -1
  51. package/es/library/custom-component/{usecases → applications}/entities-factory/PropertiesFactory.js +9 -3
  52. package/es/library/custom-component/{usecases/interactors → applications/usecases}/UnmountUseCase.js +1 -1
  53. package/es/library/custom-component/{entities → domain/entities}/Component.js +40 -7
  54. package/es/library/custom-component/{entities → domain/entities}/DefaultAppendToActionPayload.js +2 -2
  55. package/es/library/custom-component/{entities → domain/entities}/Properties.js +4 -5
  56. package/es/library/custom-component/frameworks/ui/__testcases__/CreateCustomComponent.spec.js +106 -0
  57. package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +5 -0
  58. package/es/library/dot/components/action-location/frameworks/ui/ActionLocationView.js +8 -29
  59. package/es/library/dot/components/actions-renderer/frameworks/ui/ActionsRenderer.js +9 -0
  60. package/es/library/dot/components/actions-renderer/frameworks/ui/ActionsRendererView.js +37 -0
  61. package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +16 -6
  62. package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +10 -0
  63. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +8 -6
  64. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +12 -14
  65. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/ActionColumn.js +3 -2
  66. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +7 -7
  67. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/Headers.js +0 -4
  68. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/SelectAll.js +4 -4
  69. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Columns.js +2 -6
  70. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +24 -14
  71. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +5 -1
  72. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +2 -4
  73. package/es/library/dot/legacy-to-new-arch/action-icon/{ActionIcon.js → frameworks/ui/ActionIcon.js} +2 -2
  74. package/es/library/dot/legacy-to-new-arch/action-icon/{ActionIconView.js → frameworks/ui/ActionIconView.js} +11 -5
  75. package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/css/ActionIcon.module.css +3 -0
  76. package/es/library/dot/legacy-to-new-arch/index.js +2 -1
  77. package/es/library/dot/legacy-to-new-arch/table-field-components/lookup-field/frameworks/ui/LookupFieldView.js +7 -6
  78. package/es/platform/client-actions/Readme.md +31 -0
  79. package/es/platform/client-actions/bc/zclient-actions/Constants.js +11 -0
  80. package/es/platform/client-actions/bc/zclient-actions/EventHandlers.js +1 -0
  81. package/es/platform/client-actions/behaviour/zclient-actions/Readme.md +38 -0
  82. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/AbstractController.js +8 -0
  83. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/ClientActionBehaviourExecutorController.js +27 -0
  84. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/FailureController.js +28 -0
  85. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/FetchStateStopController.js +21 -0
  86. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/MountController.js +25 -0
  87. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/NoContentController.js +23 -0
  88. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/SetClientActionsController.js +24 -0
  89. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/SuccessController.js +28 -0
  90. package/es/platform/client-actions/behaviour/zclient-actions/adapters/gateways/Repository.js +28 -0
  91. package/es/platform/client-actions/behaviour/zclient-actions/adapters/gateways/Service.js +35 -0
  92. package/es/platform/client-actions/behaviour/zclient-actions/adapters/presenters/Presenter.js +24 -0
  93. package/es/platform/client-actions/behaviour/zclient-actions/applications/entities-factory/ClientActionFactory.js +12 -0
  94. package/es/platform/client-actions/behaviour/zclient-actions/applications/entities-factory/ClientActionManagerFactory.js +10 -0
  95. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/ExecuteActionBehaviourUseCase.js +33 -0
  96. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/FailureUseCase.js +22 -0
  97. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/FetchStateStopUseCase.js +25 -0
  98. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/InitializeUseCase.js +17 -0
  99. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/NoContentUseCase.js +27 -0
  100. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/SetClientActionsUseCase.js +21 -0
  101. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/SuccessUseCase.js +22 -0
  102. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientAction.js +65 -0
  103. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientActionManager.js +141 -0
  104. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientActions.js +50 -0
  105. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/EventMapping.js +36 -0
  106. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/EventMappings.js +15 -0
  107. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/GetClientActionsStrategy.js +44 -0
  108. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/UIComponentMapping.js +41 -0
  109. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IUIComponentMapping.js +0 -0
  110. package/es/platform/client-actions/behaviour/zclient-actions/frameworks/ActionsHandlersFactory.js +47 -0
  111. package/es/platform/client-actions/behaviour/zclient-actions/frameworks/ClientActionsBehaviourFactory.js +12 -0
  112. package/es/platform/client-actions/cc/action-event-mediator/Properties.js +23 -0
  113. package/es/platform/client-actions/cc/dynamic-action-component/Properties.js +51 -0
  114. package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/MountController.js +18 -0
  115. package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/PropertiesChangeController.js +26 -0
  116. package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/UnmountController.js +18 -0
  117. package/es/platform/client-actions/components/action-event-mediator/adapters/gateway/Repository.js +36 -0
  118. package/es/platform/client-actions/components/action-event-mediator/adapters/presenters/Presenter.js +22 -0
  119. package/es/platform/client-actions/components/action-event-mediator/applications/interfaces/gateways/IRepository.js +0 -0
  120. package/es/platform/client-actions/components/action-event-mediator/applications/interfaces/output/IPresenter.js +0 -0
  121. package/es/platform/client-actions/components/action-event-mediator/applications/usecases/AbstractUseCase.js +15 -0
  122. package/es/platform/client-actions/components/action-event-mediator/applications/usecases/DestroyUseCase.js +13 -0
  123. package/es/platform/client-actions/components/action-event-mediator/applications/usecases/InitializeUseCase.js +13 -0
  124. package/es/platform/client-actions/components/action-event-mediator/applications/usecases/PropertiesChangeUseCase.js +17 -0
  125. package/es/platform/client-actions/components/action-event-mediator/domain/entities/ActionEventMediatorEntity.js +108 -0
  126. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator.js +13 -0
  127. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediatorView.js +17 -0
  128. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/EventHandlersFactory.js +30 -0
  129. package/es/platform/client-actions/components/dynamic-component/frameworks/ui/DynamicActionComponent.js +9 -0
  130. package/es/platform/client-actions/components/dynamic-component/frameworks/ui/DynamicActionComponentView.js +34 -0
  131. package/es/platform/client-actions/components/interfaces/ActionViewModel.js +0 -0
  132. package/es/platform/client-actions/components/interfaces/EventMappingViewModel.js +0 -0
  133. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRenderer.js +12 -0
  134. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRendererView.js +25 -0
  135. package/es/platform/client-actions/template-resolver/index.js +44 -0
  136. package/es/platform/client-actions/translators/client-actions-translator/index.js +29 -0
  137. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalEmptyString.js +4 -0
  138. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalEndsWith.js +4 -0
  139. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalEquals.js +4 -0
  140. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalGreaterThan.js +4 -0
  141. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalGreaterThanOrEquals.js +4 -0
  142. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalIn.js +4 -0
  143. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalIsEmpty.js +4 -0
  144. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalIsNotEmpty.js +4 -0
  145. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalLessThan.js +4 -0
  146. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalLessThanOrEquals.js +4 -0
  147. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalLike.js +4 -0
  148. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalNotEquals.js +4 -0
  149. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalNotLike.js +4 -0
  150. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalStartsWith.js +4 -0
  151. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/GetResolvedContextFieldValue.js +8 -0
  152. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/index.js +58 -0
  153. package/es/platform/client-actions/translators/condition-resolver/index.js +33 -0
  154. package/es/platform/client-actions/translators/condition-resolver/pattern-evaluator/PatternValidator.js +86 -0
  155. package/es/platform/client-actions/translators/condition-resolver/pattern-evaluator/index.js +96 -0
  156. package/es/platform/client-actions/translators/context-resolver/index.js +54 -0
  157. package/es/platform/data-broker/http-template/deleteRecord.js +1 -1
  158. package/es/platform/data-broker/http-template/deleteRecords.js +1 -1
  159. package/es/platform/data-broker/http-template/getAvailableFields.js +1 -1
  160. package/es/platform/data-broker/http-template/getClientActions.js +23 -0
  161. package/es/platform/data-broker/http-template/getRecords.js +1 -1
  162. package/es/platform/data-broker/http-template/getSelectedFields.js +1 -1
  163. package/es/platform/data-broker/http-template/updateRecord.js +1 -1
  164. package/es/platform/data-broker/index.js +3 -3
  165. package/es/platform/zdata-broker/adapters/controllers/{ActionExecutorController.js → DataBrokerExecutorController.js} +1 -1
  166. package/es/platform/zdata-broker/adapters/gateways/Repository.js +1 -1
  167. package/es/platform/zdata-broker/adapters/gateways/Service.js +5 -5
  168. package/es/platform/zdata-broker/adapters/gateways/TemplateHelpers.js +21 -0
  169. package/es/platform/{zrecord/usecases → zdata-broker/applications}/entities-factory/APITemplatesFactory.js +2 -2
  170. package/es/platform/zdata-broker/{usecases → applications}/entities-factory/DataBrokerFactory.js +1 -1
  171. package/es/platform/zdata-broker/applications/interfaces/gateways/IService.js +0 -0
  172. package/es/platform/zdata-broker/applications/interfaces/gateways/ITemplateHelpers.js +1 -0
  173. package/es/platform/zdata-broker/{entities → domain/entities}/DataBroker.js +3 -3
  174. package/es/platform/zdata-broker/domain/entities/interfaces/IDataBroker.js +0 -0
  175. package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/MetaData.js +1 -1
  176. package/es/platform/zdata-broker/frameworks/EventHandlersFactory.js +3 -3
  177. package/es/platform/zfield/adapters/gateways/Repository.js +1 -1
  178. package/es/platform/zfield/adapters/gateways/Service.js +6 -6
  179. package/es/platform/zfield/{usecases → applications}/entities-factory/FieldsManagerBuilder.js +1 -1
  180. package/es/platform/zfield/applications/interfaces/input/FetchInputModel.js +2 -0
  181. package/es/platform/zfield/{entities → domain/entities}/fields-manager/AvailableFieldsManager.js +2 -2
  182. package/es/platform/zfield/{entities → domain/entities}/fields-manager/FieldsManager.js +3 -3
  183. package/es/platform/zfield/{entities → domain/entities}/fields-manager/SelectedFieldsManager.js +2 -2
  184. package/es/platform/zfield/{entities → domain/entities}/interfaces/MetaData.js +1 -1
  185. package/es/platform/zhttp/frameworks/ActionsHandlerFactory.js +1 -1
  186. package/es/platform/zhttp/frameworks/ZHttpBehaviourFactory.js +2 -1
  187. package/es/platform/zlist/adapters/gateways/Repository.js +4 -2
  188. package/es/platform/zlist/adapters/gateways/Service.js +10 -10
  189. package/es/platform/zlist/adapters/presenters/TableTranslator.js +32 -2
  190. package/es/platform/zlist/adapters/presenters/translators/ColumnAlignmentTranslator.js +11 -0
  191. package/es/platform/zlist/adapters/presenters/translators/ColumnSizeTranslator.js +23 -0
  192. package/es/platform/zlist/adapters/presenters/translators/Header.js +4 -3
  193. package/es/platform/zlist/adapters/presenters/translators/Row.js +5 -1
  194. package/es/platform/zlist/adapters/presenters/translators/RowActionTranslator.js +18 -11
  195. package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +3 -1
  196. package/es/platform/zlist/applications/entities-factory/ListFactory.js +16 -0
  197. package/es/platform/zlist/applications/interfaces/gateways/IRepository.js +1 -0
  198. package/es/platform/zlist/applications/interfaces/gateways/IService.js +1 -0
  199. package/es/platform/zlist/applications/interfaces/gateways/ISortBy.js +1 -0
  200. package/es/platform/zlist/applications/interfaces/gateways/ITransformState.js +0 -0
  201. package/es/platform/zlist/applications/interfaces/input/DeleteMultipleRecordUseCaseInput.js +1 -0
  202. package/es/platform/zlist/applications/interfaces/input/DeleteSingleRecordUseCaseInput.js +1 -0
  203. package/es/platform/zlist/applications/interfaces/input/FetchMoreInput.js +1 -0
  204. package/es/platform/zlist/applications/interfaces/input/FieldChangeUseCaseInput.js +1 -0
  205. package/es/platform/zlist/applications/interfaces/input/InitializeInput.js +1 -0
  206. package/es/platform/zlist/applications/interfaces/input/PropertiesChangeUseCaseInput.js +1 -0
  207. package/es/platform/zlist/applications/interfaces/input/RecordExecuteFailedUseCaseInput.js +1 -0
  208. package/es/platform/zlist/applications/interfaces/input/RecordExecuteSucceededUseCaseInput.js +1 -0
  209. package/es/platform/zlist/applications/interfaces/input/RecordUpdateUseCaseInput.js +1 -0
  210. package/es/platform/zlist/applications/interfaces/input/SortingInputModel.js +1 -0
  211. package/es/platform/zlist/{entities → domain/entities}/List.js +28 -25
  212. package/es/platform/zlist/domain/entities/interfaces/ActionModel.js +1 -0
  213. package/es/platform/zlist/domain/entities/interfaces/ApiPropsModel.js +1 -0
  214. package/es/platform/zlist/domain/entities/interfaces/IList.js +1 -0
  215. package/es/platform/zlist/domain/entities/interfaces/Properties.js +1 -0
  216. package/es/platform/zlist/domain/entities/interfaces/RecordExecuteAfterMetaData.js +1 -0
  217. package/es/platform/zrecord/adapters/gateways/Repository.js +1 -1
  218. package/es/platform/zrecord/adapters/gateways/Service.js +13 -13
  219. package/es/platform/zrecord/{usecases → applications}/entities-factory/RecordFactory.js +1 -1
  220. package/es/platform/zrecord/{usecases → applications}/entities-factory/RecordsManagerFactory.js +2 -2
  221. package/es/platform/zrecord/applications/interfaces/InputDependencies.js +1 -0
  222. package/es/platform/zrecord/applications/interfaces/gateways/IRepository.js +1 -0
  223. package/es/platform/zrecord/applications/interfaces/gateways/IService.js +0 -0
  224. package/es/platform/zrecord/applications/interfaces/gateways/State.js +1 -0
  225. package/es/platform/zrecord/applications/interfaces/input/AppendRecordsInputModel.js +1 -0
  226. package/es/platform/zrecord/applications/interfaces/input/DeleteMultipleRecordInputModel.js +1 -0
  227. package/es/platform/zrecord/applications/interfaces/input/ExecuteActionInputModel.js +1 -0
  228. package/es/platform/zrecord/applications/interfaces/input/FailureInputModel.js +1 -0
  229. package/es/platform/zrecord/applications/interfaces/input/FetchMoreInputModel.js +1 -0
  230. package/es/platform/zrecord/applications/interfaces/input/FetchStateStopInputModel.js +1 -0
  231. package/es/platform/zrecord/applications/interfaces/input/FieldChangeUseCaseInput.js +1 -0
  232. package/es/platform/zrecord/applications/interfaces/input/InitializeInputModel.js +1 -0
  233. package/es/platform/zrecord/applications/interfaces/input/NoContentInputModel.js +1 -0
  234. package/es/platform/zrecord/applications/interfaces/input/RecordUpdateLocalUseCaseInputModel.js +1 -0
  235. package/es/platform/zrecord/applications/interfaces/input/RefetchInputModel.js +1 -0
  236. package/es/platform/zrecord/applications/interfaces/input/SetRecordsInputModel.js +1 -0
  237. package/es/platform/zrecord/applications/interfaces/input/SuccessInputModel.js +1 -0
  238. package/es/platform/zrecord/applications/interfaces/output/IPresenter.js +1 -0
  239. package/es/platform/zrecord/applications/usecases/AbstractUseCase.js +17 -0
  240. package/es/platform/zrecord/{entities → domain/entities}/DeleteMultipleRecordStrategy.js +1 -1
  241. package/es/platform/zrecord/{entities → domain/entities}/DeleteRecordStrategy.js +1 -1
  242. package/es/platform/zrecord/{entities → domain/entities}/GetRecordsStrategy.js +1 -1
  243. package/es/platform/zrecord/{entities → domain/entities}/RecordsManager.js +3 -3
  244. package/es/platform/zrecord/{entities → domain/entities}/UpdateRecordStrategy.js +1 -1
  245. package/es/platform/zrecord/domain/entities/interfaces/BehaviourState.js +1 -0
  246. package/es/platform/zrecord/domain/entities/interfaces/EventModel.js +1 -0
  247. package/es/platform/zrecord/domain/entities/interfaces/ICustomFieldValues.js +1 -0
  248. package/es/platform/zrecord/domain/entities/interfaces/IRecord.js +0 -0
  249. package/es/platform/zrecord/domain/entities/interfaces/IRecordExecuteStrategy.js +0 -0
  250. package/es/platform/zrecord/domain/entities/interfaces/IRecordName.js +1 -0
  251. package/es/platform/zrecord/domain/entities/interfaces/IRecords.js +0 -0
  252. package/es/platform/zrecord/domain/entities/interfaces/IRecordsManager.js +0 -0
  253. package/es/platform/zrecord/domain/entities/interfaces/RecordModel.js +1 -0
  254. package/es/platform/zrecord/domain/entities/interfaces/RecordsModel.js +1 -0
  255. package/es/platform/zrecord/domain/entities/interfaces/StrategyMeta.js +1 -0
  256. package/package.json +33 -24
  257. package/es/cc/table-list/behaviour-properties/ResizerConfig.js +0 -18
  258. package/es/cc/table-list/behaviour-properties/SelectionConfig.js +0 -17
  259. package/es/cc/table-list/behaviour-properties/SortByConfig.js +0 -14
  260. package/es/cc/table-list/behaviour-properties/index.js +0 -3
  261. package/es/library/behaviours/sort-by/adapters/controllers/Initialize.js +0 -14
  262. package/es/library/custom-component/adapters/gateways/validator/jsonValidator.js +0 -5
  263. package/es/library/custom-component/entities/__tests__/Action.spec.js +0 -19
  264. package/es/library/custom-component/entities/__tests__/ActionHandlers.spec.js +0 -15
  265. package/es/library/custom-component/entities/__tests__/Behaviour.spec.js +0 -52
  266. package/es/library/custom-component/entities/__tests__/Component.spec.js +0 -109
  267. package/es/library/custom-component/entities/getRef.js +0 -10
  268. package/es/platform/data-broker/http-template/getUIActions.js +0 -22
  269. package/es/platform/data-broker/utils/transformer/createCf.js +0 -12
  270. package/es/platform/data-broker/utils/transformer/transformer.js +0 -25
  271. package/es/platform/zdata-broker/usecases/entities-factory/APITemplatesFactory.js +0 -14
  272. package/es/platform/zdata-broker/usecases/interfaces/gateways/ITemplateHelpers.js +0 -1
  273. package/es/platform/zfield/adapters/gateways/TemplateHelpers.js +0 -30
  274. package/es/platform/zfield/entities/api-template/APITemplate.js +0 -71
  275. package/es/platform/zfield/entities/api-template/APITemplates.js +0 -24
  276. package/es/platform/zfield/entities/interfaces/api-template/APIModels.js +0 -8
  277. package/es/platform/zfield/usecases/entity-factory/FieldBuilder.js +0 -109
  278. package/es/platform/zfield/usecases/entity-factory/FieldFactory.js +0 -10
  279. package/es/platform/zfield/usecases/entity-factory/FieldsManagerBuilder.js +0 -49
  280. package/es/platform/zfield/usecases/interfaces/gateways/ITemplateHelpers.js +0 -1
  281. package/es/platform/zfield/usecases/interfaces/input/FetchInputModel.js +0 -2
  282. package/es/platform/zlist/usecases/entities-factory/ListFactory.js +0 -15
  283. package/es/platform/zrecord/adapters/gateways/TemplateHelpers.js +0 -30
  284. package/es/platform/zrecord/entities/APITemplate.js +0 -75
  285. package/es/platform/zrecord/entities/APITemplates.js +0 -24
  286. package/es/platform/zrecord/entities/Property.js +0 -40
  287. package/es/platform/zrecord/entities/interfaces/MetaData.js +0 -1
  288. package/es/platform/zrecord/usecases/interfaces/gateways/ITemplateHelpers.js +0 -1
  289. /package/es/{library/behaviours/list-selection/entities/interfaces/IListItemSelection.js → cc/action-location/Action.js} +0 -0
  290. /package/es/{library/behaviours/list-selection/entities/interfaces/ListSelectionModel.js → cc/action-location/ActionLocation.js} +0 -0
  291. /package/es/{library/behaviours/list-selection/usecases/interfaces/UseCase.js → cc/table-list/data-types/RowAction.js} +0 -0
  292. /package/es/{library/behaviours/list-selection/usecases/interfaces/UseCaseDependencies.js → cc/table-list/data-types/RowActionsConfig.js} +0 -0
  293. /package/es/library/{custom-component/usecases → behaviours/list-selection/applications}/interfaces/UseCase.js +0 -0
  294. /package/es/library/behaviours/{sort-by/usecases → list-selection/applications}/interfaces/UseCaseDependencies.js +0 -0
  295. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
  296. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/gateways/IService.js +0 -0
  297. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/AllSelectionInputModel.js +0 -0
  298. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/DestructInputModel.js +0 -0
  299. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/InitializeInputModel.js +0 -0
  300. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/RangeSelectionInputModel.js +0 -0
  301. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/SelectionInputModel.js +0 -0
  302. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/output/BehaviourStateModel.js +0 -0
  303. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
  304. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  305. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/AllItemSelection.js +0 -0
  306. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/Destruct.js +0 -0
  307. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/Initialize.js +0 -0
  308. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/ItemsSelection.js +0 -0
  309. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/RangeSelection.js +0 -0
  310. /package/es/library/behaviours/{sort-by/entities/interfaces/ISortBy.js → list-selection/domain/entities/interfaces/IListItemSelection.js} +0 -0
  311. /package/es/library/behaviours/{sort-by/usecases/interfaces/gateways/IRepository.js → list-selection/domain/entities/interfaces/ListSelectionModel.js} +0 -0
  312. /package/es/library/behaviours/{text-to-field-click/usecases → sort-by/applications}/interfaces/UseCaseDependencies.js +0 -0
  313. /package/es/library/behaviours/{text-to-field-click/usecases → sort-by/applications}/interfaces/gateways/IRepository.js +0 -0
  314. /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/gateways/IService.js +0 -0
  315. /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/input/SortByInputModel.js +0 -0
  316. /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
  317. /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/output/SortByOutputModel.js +0 -0
  318. /package/es/library/behaviours/sort-by/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  319. /package/es/library/behaviours/sort-by/{usecases/interactors → applications/usecases}/SortBy.js +0 -0
  320. /package/es/{platform/zlist/usecases/interfaces/gateways → library/behaviours/sort-by/domain/entities/interfaces}/ISortBy.js +0 -0
  321. /package/es/{platform/zlist/usecases → library/behaviours/text-to-field-click/applications}/interfaces/UseCaseDependencies.js +0 -0
  322. /package/es/library/{custom-component/usecases → behaviours/text-to-field-click/applications}/interfaces/gateways/IRepository.js +0 -0
  323. /package/es/library/behaviours/text-to-field-click/{usecases → applications}/interfaces/input/ClickUseCaseInputModel.js +0 -0
  324. /package/es/library/behaviours/text-to-field-click/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  325. /package/es/library/behaviours/text-to-field-click/{usecases/interactors → applications/usecases}/ClickUseCase.js +0 -0
  326. /package/es/library/behaviours/text-to-field-click/{entities → domain/entities}/interfaces/IFieldEventConverter.js +0 -0
  327. /package/es/library/custom-component/{usecases → applications}/interfaces/InputDependencies.js +0 -0
  328. /package/es/library/custom-component/{usecases → applications}/interfaces/OutputDependencies.js +0 -0
  329. /package/es/{platform/zhttp/usecases → library/custom-component/applications}/interfaces/UseCase.js +0 -0
  330. /package/es/library/custom-component/{usecases → applications}/interfaces/gateways/IEventManager.js +0 -0
  331. /package/es/library/custom-component/{usecases → applications}/interfaces/gateways/IJSONValidator.js +0 -0
  332. /package/es/{platform/zdata-broker/usecases → library/custom-component/applications}/interfaces/gateways/IRepository.js +0 -0
  333. /package/es/library/custom-component/{usecases → applications}/interfaces/gateways/IService.js +0 -0
  334. /package/es/library/custom-component/{usecases → applications}/interfaces/input/DispatchInputModel.js +0 -0
  335. /package/es/library/custom-component/{usecases → applications}/interfaces/input/InitailizeInputModel.js +0 -0
  336. /package/es/library/custom-component/{usecases → applications}/interfaces/input/UpdatePropertiesInputModel.js +0 -0
  337. /package/es/library/custom-component/{usecases → applications}/interfaces/input/UpdateStateInputModel.js +0 -0
  338. /package/es/library/custom-component/{usecases → applications}/interfaces/output/OutputBoundary.js +0 -0
  339. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  340. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/DispatchUseCase.js +0 -0
  341. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
  342. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/MountUseCase.js +0 -0
  343. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/UpdatePropertyUseCase.js +0 -0
  344. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/UpdateStateUseCase.js +0 -0
  345. /package/es/library/custom-component/{entities → domain/entities}/Behaviour.js +0 -0
  346. /package/es/library/custom-component/{entities → domain/entities}/EventHandler.js +0 -0
  347. /package/es/library/custom-component/{entities → domain/entities}/EventHandlers.js +0 -0
  348. /package/es/library/custom-component/{entities → domain/entities}/Events.js +0 -0
  349. /package/es/library/custom-component/{entities → domain/entities}/LifeCycleAction.js +0 -0
  350. /package/es/library/custom-component/{entities → domain/entities}/Payload.js +0 -0
  351. /package/es/library/custom-component/{entities → domain/entities}/Property.js +0 -0
  352. /package/es/library/custom-component/{entities → domain/entities}/Schema.js +0 -0
  353. /package/es/library/custom-component/{entities → domain/entities}/State.js +0 -0
  354. /package/es/library/custom-component/{entities → domain/entities}/Style.js +0 -0
  355. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IBehaviour.js +0 -0
  356. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IComponent.js +0 -0
  357. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEvent.js +0 -0
  358. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventHandler.js +0 -0
  359. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventHandlerHelpers.js +0 -0
  360. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventHandlers.js +0 -0
  361. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventWrapper.js +0 -0
  362. /package/es/library/custom-component/{entities → domain/entities}/interfaces/ILifeCycleAction.js +0 -0
  363. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IPayload.js +0 -0
  364. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IProperties.js +0 -0
  365. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IProperty.js +0 -0
  366. /package/es/library/custom-component/{entities → domain/entities}/interfaces/ISchema.js +0 -0
  367. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IState.js +0 -0
  368. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IStyle.js +0 -0
  369. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IUpdateHelper.js +0 -0
  370. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IValidator.js +0 -0
  371. /package/es/platform/{zdata-broker/entities/interfaces/APIDetailsModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/ClientActionModel.js} +0 -0
  372. /package/es/platform/{zdata-broker/entities/interfaces/APITemplateModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/ComponentPropertiesModel.js} +0 -0
  373. /package/es/platform/{zdata-broker/entities/interfaces/APITemplatesModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/ConditionFieldModel.js} +0 -0
  374. /package/es/platform/{zdata-broker/entities/interfaces/BehaviourState.js → client-actions/behaviour/zclient-actions/applications/interfaces/ConditionModel.js} +0 -0
  375. /package/es/platform/{zdata-broker/entities/interfaces/EventModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/EventMappingModel.js} +0 -0
  376. /package/es/platform/{zdata-broker/entities/interfaces/IAPITemplate.js → client-actions/behaviour/zclient-actions/applications/interfaces/IError.js} +0 -0
  377. /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/InputDependencies.js +0 -0
  378. /package/es/platform/{zdata-broker/entities/interfaces/IAPITemplates.js → client-actions/behaviour/zclient-actions/applications/interfaces/PayloadValueMappingModel.js} +0 -0
  379. /package/es/platform/{zdata-broker/entities/interfaces/ITemplateHelpers.js → client-actions/behaviour/zclient-actions/applications/interfaces/PropsMeta.js} +0 -0
  380. /package/es/platform/{zrecord/entities → client-actions/behaviour/zclient-actions/applications}/interfaces/StrategyMeta.js +0 -0
  381. /package/es/platform/{zdata-broker/usecases/interfaces/gateways/State.js → client-actions/behaviour/zclient-actions/applications/interfaces/UIComponentMappingModel.js} +0 -0
  382. /package/es/platform/{zdata-broker/usecases/interfaces/input/ExecuteActionInputModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/UserDetailsModel.js} +0 -0
  383. /package/es/platform/{zfield/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/gateways/IRepository.js +0 -0
  384. /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/gateways/IService.js +0 -0
  385. /package/es/platform/{zlist/usecases/interfaces → client-actions/behaviour/zclient-actions/applications/interfaces/gateways}/State.js +0 -0
  386. /package/es/platform/{zdata-broker/usecases/interfaces/input/FailureInputModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/input/ExecuteActionBehaviourInputModel.js} +0 -0
  387. /package/es/platform/{zrecord/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/FailureInputModel.js +0 -0
  388. /package/es/platform/{zrecord/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/FetchStateStopInputModel.js +0 -0
  389. /package/es/platform/{zrecord/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/InitializeInputModel.js +0 -0
  390. /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/NoContentInputModel.js +0 -0
  391. /package/es/platform/{zdata-broker/usecases/interfaces/input/RegisterInputModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/input/SetClientActionsInputModel.js} +0 -0
  392. /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/SuccessInputModel.js +0 -0
  393. /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/output/IPresenter.js +0 -0
  394. /package/es/platform/{zdata-broker/usecases/interactors → client-actions/behaviour/zclient-actions/applications/usecases}/AbstractUseCase.js +0 -0
  395. /package/es/platform/{zfield → client-actions/behaviour/zclient-actions/domain}/entities/interfaces/BehaviourState.js +0 -0
  396. /package/es/platform/{zfield/entities/interfaces/ActionModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionModel.js} +0 -0
  397. /package/es/platform/{zfield/entities/interfaces/FieldModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionsModel.js} +0 -0
  398. /package/es/platform/{zfield/entities/interfaces/IField.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ComponentPropertiesModel.js} +0 -0
  399. /package/es/platform/{zfield/entities/interfaces/IFieldManger.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ConditionFieldModel.js} +0 -0
  400. /package/es/platform/{zfield/entities/interfaces/api-template/IAPITemplate.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ConditionModel.js} +0 -0
  401. /package/es/platform/{zfield/entities/interfaces/api-template/IAPITemplates.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/EventMappingModel.js} +0 -0
  402. /package/es/platform/{zrecord → client-actions/behaviour/zclient-actions/domain}/entities/interfaces/EventModel.js +0 -0
  403. /package/es/platform/{zfield/entities/interfaces/api-template/ITemplateHelpers.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IAction.js} +0 -0
  404. /package/es/platform/{zdata-broker/entities/interfaces/IDataBroker.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientAction.js} +0 -0
  405. /package/es/platform/{zlist/usecases/interfaces/gateways/ITransformState.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActionExecuteStrategy.js} +0 -0
  406. /package/es/platform/{zrecord/entities/interfaces/IRecord.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActionManager.js} +0 -0
  407. /package/es/platform/{zrecord/entities/interfaces/IRecordExecuteStrategy.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActions.js} +0 -0
  408. /package/es/platform/{zfield/usecases/interfaces/UsecaseDependencies.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IError.js} +0 -0
  409. /package/es/platform/{zfield/usecases/interfaces/gateways/IRestApi.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IEvent.js} +0 -0
  410. /package/es/platform/{zrecord/entities/interfaces/IRecords.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IEventMapping.js} +0 -0
  411. /package/es/platform/{zrecord/entities/interfaces/IRecordsManager.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IEventMappings.js} +0 -0
  412. /package/es/platform/{zrecord/usecases/interfaces/gateways/IService.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IPayload.js} +0 -0
  413. /package/es/platform/{zfield/usecases/interfaces/gateways/IService.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/PayloadValueMappingModel.js} +0 -0
  414. /package/es/platform/{zfield/usecases/interfaces/input/ExecuteActionInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/PropsMeta.js} +0 -0
  415. /package/es/platform/{zrecord/usecases/interfaces/gateways → client-actions/behaviour/zclient-actions/domain/entities/interfaces}/State.js +0 -0
  416. /package/es/platform/{zfield/usecases/interfaces/input/InitialInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/StrategyMeta.js} +0 -0
  417. /package/es/platform/{zfield/usecases/interfaces/input/InputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/SubMeta.js} +0 -0
  418. /package/es/platform/{zfield/usecases/interfaces/input/RefetchInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/UIComponentMappingModel.js} +0 -0
  419. /package/es/platform/{zfield/usecases/interfaces/input/SetValueInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/UserDetailsModel.js} +0 -0
  420. /package/es/platform/{zfield/usecases/interfaces/output/IPresenter.js → client-actions/components/action-event-mediator/applications/interfaces/UseCaseDependencies.js} +0 -0
  421. /package/es/platform/{zhttp/usecases/interfaces/InputDependencies.js → client-actions/components/action-event-mediator/applications/interfaces/input/PropertiesChangeUseCaseInputModel.js} +0 -0
  422. /package/es/platform/{zhttp/usecases/interfaces/gateway/IFetchGateWay.js → client-actions/components/action-event-mediator/domain/entities/interfaces/IActionLocation.js} +0 -0
  423. /package/es/platform/{zhttp/usecases/interfaces/input/FetchInputModel.js → client-actions/components/action-event-mediator/domain/entities/interfaces/IState.js} +0 -0
  424. /package/es/platform/{zlist/entities/interfaces/ActionModel.js → client-actions/components/dynamic-component/domain/entities/interfaces/IState.js} +0 -0
  425. /package/es/platform/{zlist/entities/interfaces/ApiPropsModel.js → client-actions/components/row-actions-renderer/domain/entities/interfaces/IState.js} +0 -0
  426. /package/es/platform/{zlist/entities/interfaces/IList.js → client-actions/template-resolver/interfaces/ITemplate.js} +0 -0
  427. /package/es/platform/{zlist/entities/interfaces/Properties.js → client-actions/translators/interfaces/IContext.js} +0 -0
  428. /package/es/platform/{zlist/entities/interfaces/RecordExecuteAfterMetaData.js → client-actions/translators/interfaces/IState.js} +0 -0
  429. /package/es/platform/{zrecord/usecases → zdata-broker/applications}/interfaces/InputDependencies.js +0 -0
  430. /package/es/platform/{zlist/usecases → zdata-broker/applications}/interfaces/gateways/IRepository.js +0 -0
  431. /package/es/platform/{zlist/usecases/interfaces/gateways/IService.js → zdata-broker/applications/interfaces/gateways/State.js} +0 -0
  432. /package/es/platform/{zrecord/usecases → zdata-broker/applications}/interfaces/input/ExecuteActionInputModel.js +0 -0
  433. /package/es/platform/{zlist/usecases/interfaces/input/DeleteMultipleRecordUseCaseInput.js → zdata-broker/applications/interfaces/input/FailureInputModel.js} +0 -0
  434. /package/es/platform/{zrecord/usecases → zdata-broker/applications}/interfaces/input/NoContentInputModel.js +0 -0
  435. /package/es/platform/{zlist/usecases/interfaces/input/DeleteSingleRecordUseCaseInput.js → zdata-broker/applications/interfaces/input/RegisterInputModel.js} +0 -0
  436. /package/es/platform/{zrecord/usecases → zdata-broker/applications}/interfaces/input/SuccessInputModel.js +0 -0
  437. /package/es/platform/{zrecord/usecases → zdata-broker/applications}/interfaces/output/IPresenter.js +0 -0
  438. /package/es/platform/{zrecord/usecases/interactors → zdata-broker/applications/usecases}/AbstractUseCase.js +0 -0
  439. /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +0 -0
  440. /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/FailureUseCase.js +0 -0
  441. /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/NoContentUseCase.js +0 -0
  442. /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/RegisterUseCase.js +0 -0
  443. /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/SuccessUseCase.js +0 -0
  444. /package/es/platform/zdata-broker/{entities → domain/entities}/APITemplate.js +0 -0
  445. /package/es/platform/zdata-broker/{entities → domain/entities}/APITemplates.js +0 -0
  446. /package/es/platform/{zrecord → zdata-broker/domain}/entities/interfaces/APIDetailsModel.js +0 -0
  447. /package/es/platform/{zrecord → zdata-broker/domain}/entities/interfaces/APITemplateModel.js +0 -0
  448. /package/es/platform/{zrecord → zdata-broker/domain}/entities/interfaces/APITemplatesModel.js +0 -0
  449. /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/ApiEnum.js +0 -0
  450. /package/es/platform/{zrecord → zdata-broker/domain}/entities/interfaces/BehaviourState.js +0 -0
  451. /package/es/platform/{zlist/usecases/interfaces/input/FetchMoreInput.js → zdata-broker/domain/entities/interfaces/EventModel.js} +0 -0
  452. /package/es/platform/{zrecord → zdata-broker/domain}/entities/interfaces/IAPITemplate.js +0 -0
  453. /package/es/platform/{zrecord → zdata-broker/domain}/entities/interfaces/IAPITemplates.js +0 -0
  454. /package/es/platform/{zrecord → zdata-broker/domain}/entities/interfaces/ITemplateHelpers.js +0 -0
  455. /package/es/platform/zfield/{usecases → applications}/entities-factory/FieldBuilder.js +0 -0
  456. /package/es/platform/zfield/{usecases → applications}/entities-factory/FieldFactory.js +0 -0
  457. /package/es/platform/{zlist/usecases/interfaces/input/FieldChangeUseCaseInput.js → zfield/applications/interfaces/UsecaseDependencies.js} +0 -0
  458. /package/es/platform/{zrecord/usecases → zfield/applications}/interfaces/gateways/IRepository.js +0 -0
  459. /package/es/platform/{zlist/usecases/interfaces/input/InitializeInput.js → zfield/applications/interfaces/gateways/IRestApi.js} +0 -0
  460. /package/es/platform/{zlist/usecases/interfaces/input/PropertiesChangeUseCaseInput.js → zfield/applications/interfaces/gateways/IService.js} +0 -0
  461. /package/es/platform/{zlist/usecases/interfaces/input/RecordExecuteFailedUseCaseInput.js → zfield/applications/interfaces/input/ExecuteActionInputModel.js} +0 -0
  462. /package/es/platform/{zlist/usecases/interfaces/input/RecordExecuteSucceededUseCaseInput.js → zfield/applications/interfaces/input/InitialInputModel.js} +0 -0
  463. /package/es/platform/{zlist/usecases/interfaces/input/RecordUpdateUseCaseInput.js → zfield/applications/interfaces/input/InputModel.js} +0 -0
  464. /package/es/platform/{zrecord/usecases → zfield/applications}/interfaces/input/RefetchInputModel.js +0 -0
  465. /package/es/platform/{zlist/usecases/interfaces/input/SortingInputModel.js → zfield/applications/interfaces/input/SetValueInputModel.js} +0 -0
  466. /package/es/platform/{zrecord/entities/interfaces/ActionModel.js → zfield/applications/interfaces/output/IPresenter.js} +0 -0
  467. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  468. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +0 -0
  469. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchFailureUseCase.js +0 -0
  470. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchNoContentUseCase.js +0 -0
  471. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchSuccessUseCase.js +0 -0
  472. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
  473. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/RefetchUseCase.js +0 -0
  474. /package/es/platform/zfield/{entities → domain/entities}/BooleanField.js +0 -0
  475. /package/es/platform/zfield/{entities → domain/entities}/CurrencyField.js +0 -0
  476. /package/es/platform/zfield/{entities → domain/entities}/DateField.js +0 -0
  477. /package/es/platform/zfield/{entities → domain/entities}/DateTimeField.js +0 -0
  478. /package/es/platform/zfield/{entities → domain/entities}/EmailField.js +0 -0
  479. /package/es/platform/zfield/{entities → domain/entities}/Field.js +0 -0
  480. /package/es/platform/zfield/{entities → domain/entities}/LookupField.js +0 -0
  481. /package/es/platform/zfield/{entities → domain/entities}/MultiLineField.js +0 -0
  482. /package/es/platform/zfield/{entities → domain/entities}/MultiSelectField.js +0 -0
  483. /package/es/platform/zfield/{entities → domain/entities}/PercentageField.js +0 -0
  484. /package/es/platform/zfield/{entities → domain/entities}/PhoneField.js +0 -0
  485. /package/es/platform/zfield/{entities → domain/entities}/PickListField.js +0 -0
  486. /package/es/platform/zfield/{entities → domain/entities}/SingleLineField.js +0 -0
  487. /package/es/platform/zfield/{entities → domain/entities}/URLField.js +0 -0
  488. /package/es/platform/zfield/{entities → domain/entities}/index.js +0 -0
  489. /package/es/platform/{zrecord/entities/interfaces/ICustomFieldValues.js → zfield/domain/entities/interfaces/ActionModel.js} +0 -0
  490. /package/es/platform/{zrecord/entities/interfaces/IProperties.js → zfield/domain/entities/interfaces/BehaviourState.js} +0 -0
  491. /package/es/platform/zfield/{entities → domain/entities}/interfaces/FieldApiName.js +0 -0
  492. /package/es/platform/{zrecord/entities/interfaces/IRecordName.js → zfield/domain/entities/interfaces/FieldModel.js} +0 -0
  493. /package/es/platform/{zrecord/entities/interfaces/RecordModel.js → zfield/domain/entities/interfaces/IField.js} +0 -0
  494. /package/es/platform/{zrecord/entities/interfaces/RecordsModel.js → zfield/domain/entities/interfaces/IFieldManger.js} +0 -0
  495. /package/es/platform/{zrecord/usecases/interfaces/input/AppendRecordsInputModel.js → zhttp/applications/interfaces/InputDependencies.js} +0 -0
  496. /package/es/platform/{zrecord/usecases/interfaces/input/DeleteMultipleRecordInputModel.js → zhttp/applications/interfaces/UseCase.js} +0 -0
  497. /package/es/platform/{zrecord/usecases/interfaces/input/FetchMoreInputModel.js → zhttp/applications/interfaces/gateway/IFetchGateWay.js} +0 -0
  498. /package/es/platform/{zrecord/usecases/interfaces/input/FieldChangeUseCaseInput.js → zhttp/applications/interfaces/input/FetchInputModel.js} +0 -0
  499. /package/es/platform/zhttp/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  500. /package/es/platform/zhttp/{usecases/interactors → applications/usecases}/FetchUseCase.js +0 -0
  501. /package/es/platform/{zrecord/usecases/interfaces/input/RecordUpdateLocalUseCaseInputModel.js → zlist/applications/interfaces/State.js} +0 -0
  502. /package/es/platform/{zrecord/usecases/interfaces/input/SetRecordsInputModel.js → zlist/applications/interfaces/UseCaseDependencies.js} +0 -0
  503. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  504. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/DeleteMultipleRecordUseCase.js +0 -0
  505. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/DeleteSingleRecordUseCase.js +0 -0
  506. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/FetchMoreUseCase.js +0 -0
  507. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/FieldChangeUseCase.js +0 -0
  508. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
  509. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/PropertiesChangeUseCase.js +0 -0
  510. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/RecordExecuteFailedUseCase.js +0 -0
  511. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/RecordExecuteSucceededUseCase.js +0 -0
  512. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/RecordUpdateUseCase.js +0 -0
  513. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/SortUseCase.js +0 -0
  514. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/AppendRecordsUseCase.js +0 -0
  515. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/DeleteMultipleRecordUseCase.js +0 -0
  516. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +0 -0
  517. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FailureUseCase.js +0 -0
  518. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FetchMoreUseCase.js +0 -0
  519. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FetchStateStopUseCase.js +0 -0
  520. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FieldChangeUseCase.js +0 -0
  521. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
  522. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/NoContentUseCase.js +0 -0
  523. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/RecordUpdateLocalUseCase.js +0 -0
  524. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/RefetchUseCase.js +0 -0
  525. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/SetRecordsUseCase.js +0 -0
  526. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/SuccessUseCase.js +0 -0
  527. /package/es/platform/zrecord/{entities → domain/entities}/CustomFieldValues.js +0 -0
  528. /package/es/platform/zrecord/{entities → domain/entities}/Record.js +0 -0
  529. /package/es/platform/zrecord/{entities → domain/entities}/Records.js +0 -0
  530. /package/es/platform/zrecord/{entities → domain/entities}/interfaces/ApiEnum.js +0 -0
@@ -1,109 +0,0 @@
1
- import ComponentFactory from "../../../../../es/library/custom-component/usecases/entities-factory/ComponentFactory";
2
- describe("Component", () => {
3
- let component;
4
- let properties;
5
- let lifeCycleAction;
6
- let actionHandlers;
7
- let behaviour;
8
- let jsonValidator;
9
- beforeEach(() => {
10
- // Create Component instance
11
- jsonValidator = jest.fn().mockReturnValue(true);
12
- component = ComponentFactory({
13
- name: "TestComponent",
14
- properties: {
15
- text: {
16
- required: true,
17
- typeMetadata: {
18
- schema: {
19
- type: "string"
20
- }
21
- }
22
- },
23
- color: {
24
- required: true,
25
- typeMetadata: {
26
- schema: {
27
- type: "string"
28
- }
29
- }
30
- },
31
- tooltip: {
32
- required: true,
33
- defaultValue: "",
34
- typeMetadata: {
35
- schema: {
36
- type: "string"
37
- }
38
- }
39
- }
40
- },
41
- actions: [{
42
- type: "TEXT#CLICKED"
43
- }],
44
- actionHandlers: {
45
- "TEXT#CLICKED": jest.fn()
46
- },
47
- behaviours: []
48
- });
49
- });
50
- describe("Initialization", () => {
51
- it("should initialize component properties and state", () => {
52
- const newProps = {
53
- text: "welcome",
54
- color: "red"
55
- };
56
- component.init(jsonValidator, newProps);
57
- expect(component.getState()).toEqual({
58
- properties: {
59
- color: "red",
60
- text: "welcome",
61
- tooltip: "",
62
- appendToActionPayload: null
63
- }
64
- });
65
- });
66
- });
67
- describe.only("State and Properties", () => {
68
- it("should update properties", () => {
69
- const initialProps = {
70
- text: "welcome",
71
- color: "red"
72
- };
73
- component.init(jsonValidator, initialProps);
74
- const newProps = {
75
- text: "welcome friend",
76
- color: "yellow"
77
- };
78
- component.updateProperties(jsonValidator, newProps);
79
- expect(component.getState()).toEqual({
80
- properties: {
81
- color: "yellow",
82
- text: "welcome friend",
83
- tooltip: "",
84
- appendToActionPayload: null
85
- }
86
- });
87
- });
88
- it("should update state", () => {
89
- const initialProps = {
90
- text: "welcome",
91
- color: "red"
92
- };
93
- component.init(jsonValidator, initialProps);
94
- const newState = {
95
- test: "state"
96
- };
97
- component.updateState(newState);
98
- expect(component.getState()).toEqual({
99
- properties: {
100
- color: "red",
101
- text: "welcome",
102
- tooltip: "",
103
- appendToActionPayload: null
104
- },
105
- test: "state"
106
- });
107
- });
108
- });
109
- });
@@ -1,10 +0,0 @@
1
- export default {
2
- name: 'getRef',
3
- required: false,
4
- defaultValue: null,
5
- typeMetadata: {
6
- schema: {
7
- type: 'function'
8
- }
9
- }
10
- };
@@ -1,22 +0,0 @@
1
- import Transformer from "../utils/transformer/Transformer";
2
- let getUIActions = {
3
- name: "uiActions",
4
- api: "https://vimal-19789.tsi.zohocorpin.com:9090/api/v2/records",
5
- parameters: `{
6
- "cf_model_name":"{{modelName}}",
7
- "module":"{{modelName}}"
8
- }`,
9
- type: "GET",
10
- transformer: data => Transformer.transform(data, "UIActionName"),
11
- properties: {
12
- modelName: {
13
- required: true,
14
- typeMetadata: {
15
- schema: {
16
- type: "string"
17
- }
18
- }
19
- }
20
- }
21
- };
22
- export default getUIActions;
@@ -1,12 +0,0 @@
1
- function createCf(item, key) {
2
- return Object.keys(item).reduce((res, next) => {
3
- if ([key, "id", "createdTime"].includes(next)) {
4
- return res;
5
- } else {
6
- res[next] = item[next];
7
- return res;
8
- }
9
- }, {});
10
- }
11
-
12
- export default createCf;
@@ -1,25 +0,0 @@
1
- import createCf from "./createCf";
2
-
3
- function transformer(_ref, key) {
4
- let {
5
- data
6
- } = _ref;
7
- let records = data.map(item => {
8
- let {
9
- id,
10
- createdTime
11
- } = item;
12
- return {
13
- id,
14
- recordName: {
15
- key: key,
16
- value: item[key]
17
- },
18
- createdTime,
19
- cf: item.cf ? item.cf : createCf(item, key)
20
- };
21
- });
22
- return records;
23
- }
24
-
25
- export default transformer;
@@ -1,14 +0,0 @@
1
- import APITemplate from "../../entities/APITemplate";
2
- import APITemplates from "../../entities/APITemplates";
3
- export default class APITemplatesFactory {
4
- static create(httpTemplates, templateHelpers) {
5
- const apiTemplatesMap = new Map();
6
- Object.keys(httpTemplates).forEach(key => {
7
- const apiTemplateTemplate = httpTemplates[key];
8
- const apiTemplate = new APITemplate(apiTemplateTemplate, templateHelpers);
9
- apiTemplatesMap.set(key, apiTemplate);
10
- });
11
- return new APITemplates(apiTemplatesMap);
12
- }
13
-
14
- }
@@ -1 +0,0 @@
1
- export { ITemplateHelpers } from "../../../entities/interfaces/ITemplateHelpers";
@@ -1,30 +0,0 @@
1
- export default class TemplateHelpers {
2
- getPathValue(path, obj) {
3
- return path.split('.').reduce(function (prev, curr) {
4
- return prev ? prev[curr] : undefined;
5
- }, obj);
6
- }
7
-
8
- replaceTemplateVariables(inputString, replacementObj) {
9
- return inputString.replace(/{{(.*?)}}/g, (match, key) => {
10
- let value = this.getPathValue(key.trim(), replacementObj);
11
-
12
- if (Array.isArray(value) || value instanceof Object) {
13
- return JSON.stringify(value);
14
- }
15
-
16
- return value !== undefined ? value : match;
17
- });
18
- }
19
-
20
- objectToQueryString(obj) {
21
- return Object.keys(obj).map(key => encodeURIComponent(key) + '=' + encodeURIComponent(obj[key])).join('&');
22
- }
23
-
24
- constructQueryString(inputString, replacementObj) {
25
- const replacedString = this.replaceTemplateVariables(inputString, replacementObj);
26
- const parsedObj = JSON.parse(replacedString);
27
- return this.objectToQueryString(parsedObj);
28
- }
29
-
30
- }
@@ -1,71 +0,0 @@
1
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
-
3
- import { API_METHODS } from "../interfaces/api-template/APIModels";
4
-
5
- class APITemplate {
6
- constructor(input, templateHelpers) {
7
- _defineProperty(this, "input", void 0);
8
-
9
- _defineProperty(this, "api", void 0);
10
-
11
- _defineProperty(this, "payload", void 0);
12
-
13
- _defineProperty(this, "parameters", void 0);
14
-
15
- _defineProperty(this, "type", void 0);
16
-
17
- _defineProperty(this, "helper", void 0);
18
-
19
- this.input = input;
20
- this.api = input.api;
21
- this.payload = input.requestBody;
22
- this.parameters = input.parameters;
23
- this.type = API_METHODS[input.type];
24
- this.helper = templateHelpers;
25
- }
26
-
27
- getApi(obj) {
28
- return this.helper.replaceTemplateVariables(this.api, obj);
29
- }
30
-
31
- getPayload(obj) {
32
- if (this.payload) {
33
- return JSON.parse(this.helper.replaceTemplateVariables(this.payload, obj));
34
- } else {
35
- return `{}`;
36
- }
37
- }
38
-
39
- getParameter(obj) {
40
- if (this.parameters) {
41
- return this.helper.replaceTemplateVariables(this.parameters, obj);
42
- } else {
43
- return `""`;
44
- }
45
- }
46
-
47
- constructURL(obj) {
48
- const queryObj = JSON.parse(this.getParameter(obj));
49
- const query = this.helper.objectToQueryString(queryObj);
50
- return `${this.getApi(obj)}?${query}`;
51
- }
52
-
53
- getApiDetails(obj) {
54
- return {
55
- url: this.constructURL(obj),
56
- type: this.type,
57
- payload: this.getPayload(obj)
58
- };
59
- }
60
-
61
- getTransformer() {
62
- return this.input.transformer;
63
- }
64
-
65
- toObject() {
66
- return this.input;
67
- }
68
-
69
- }
70
-
71
- export default APITemplate;
@@ -1,24 +0,0 @@
1
- class APITemplates {
2
- constructor(apiTemplates) {
3
- this.apiTemplates = apiTemplates;
4
- }
5
-
6
- getAPITemplateByName(name) {
7
- return this.apiTemplates.get(name);
8
- }
9
-
10
- getApiDetails(actionName, props) {
11
- return this.getAPITemplateByName(actionName).getApiDetails(props);
12
- }
13
-
14
- toObject() {
15
- const output = {};
16
- this.apiTemplates.forEach((record, apiName) => {
17
- output[apiName] = record.toObject();
18
- });
19
- return output;
20
- }
21
-
22
- }
23
-
24
- export default APITemplates;
@@ -1,8 +0,0 @@
1
- export let API_METHODS = /*#__PURE__*/function (API_METHODS) {
2
- API_METHODS["GET"] = "GET";
3
- API_METHODS["POST"] = "POST";
4
- API_METHODS["PUT"] = "PUT";
5
- API_METHODS["DELETE"] = "DELETE";
6
- API_METHODS["PATCH"] = "PATCH";
7
- return API_METHODS;
8
- }({});
@@ -1,109 +0,0 @@
1
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
-
3
- import * as FieldEntities from "../../entities";
4
-
5
- class FieldBuilder {
6
- constructor() {
7
- _defineProperty(this, "id", void 0);
8
-
9
- _defineProperty(this, "type", void 0);
10
-
11
- _defineProperty(this, "name", void 0);
12
-
13
- _defineProperty(this, "displayLabel", void 0);
14
-
15
- _defineProperty(this, "isCustomField", void 0);
16
-
17
- _defineProperty(this, "i18NLabel", void 0);
18
-
19
- _defineProperty(this, "isSortable", void 0);
20
-
21
- _defineProperty(this, "isVisible", void 0);
22
-
23
- _defineProperty(this, "isReadOnly", void 0);
24
-
25
- _defineProperty(this, "isEncryptedField", void 0);
26
-
27
- _defineProperty(this, "isPHI", void 0);
28
-
29
- _defineProperty(this, "maxLength", void 0);
30
-
31
- _defineProperty(this, "isMandatory", void 0);
32
- }
33
-
34
- setId(id) {
35
- this.id = id;
36
- return this;
37
- }
38
-
39
- setType(type) {
40
- if (!FieldEntities[type]) {
41
- throw new Error(`Invalid field type: ${type}`);
42
- }
43
-
44
- this.type = type;
45
- return this;
46
- }
47
-
48
- setName(name) {
49
- this.name = name;
50
- return this;
51
- }
52
-
53
- setDisplayLabel(displayLabel) {
54
- this.displayLabel = displayLabel;
55
- return this;
56
- }
57
-
58
- setIsCustomField(isCustomField) {
59
- this.isCustomField = isCustomField;
60
- return this;
61
- }
62
-
63
- setI18NLabel(i18NLabel) {
64
- this.i18NLabel = i18NLabel;
65
- return this;
66
- }
67
-
68
- setIsSortable(isSortable) {
69
- this.isSortable = isSortable;
70
- return this;
71
- }
72
-
73
- setIsVisible(isVisible) {
74
- this.isVisible = isVisible;
75
- return this;
76
- }
77
-
78
- setIsReadOnly(isReadOnly) {
79
- this.isReadOnly = isReadOnly;
80
- return this;
81
- }
82
-
83
- setIsEncryptedField(isEncryptedField) {
84
- this.isEncryptedField = isEncryptedField;
85
- return this;
86
- }
87
-
88
- setIsPHI(isPHI) {
89
- this.isPHI = isPHI;
90
- return this;
91
- }
92
-
93
- setMaxLength(maxLength) {
94
- this.maxLength = maxLength;
95
- return this;
96
- }
97
-
98
- setIsMandatory(isMandatory) {
99
- this.isMandatory = isMandatory;
100
- return this;
101
- }
102
-
103
- build() {
104
- return new FieldEntities[this.type](this.id, this.type, this.name, this.displayLabel, this.isCustomField, this.i18NLabel, this.isSortable, this.isVisible, this.isReadOnly, this.isEncryptedField, this.isPHI, this.maxLength, this.isMandatory);
105
- }
106
-
107
- }
108
-
109
- export default FieldBuilder;
@@ -1,10 +0,0 @@
1
- import FieldBuilder from "./FieldBuilder";
2
-
3
- class FieldFactory {
4
- static create(input) {
5
- return new FieldBuilder().setId(input.id).setType(input.type).setName(input.name).setDisplayLabel(input.displayLabel).setIsCustomField(input.isCustomField).setI18NLabel(input.i18NLabel).setIsSortable(input.isSortable).setIsVisible(input.isVisible).setIsReadOnly(input.isReadOnly).setIsEncryptedField(input.isEncryptedField).setIsPHI(input.isPHI).setMaxLength(input.maxLength).setIsMandatory(input.isMandatory).build();
6
- }
7
-
8
- }
9
-
10
- export default FieldFactory;
@@ -1,49 +0,0 @@
1
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
-
3
- import FieldsManager from "../../entities/fields-manager/FieldsManager";
4
-
5
- class FieldsManagerBuilder {
6
- constructor() {
7
- _defineProperty(this, "availableFields", void 0);
8
-
9
- _defineProperty(this, "selectedFields", void 0);
10
-
11
- _defineProperty(this, "isAvailableFieldsFetching", void 0);
12
-
13
- _defineProperty(this, "isSelectedFieldsFetching", void 0);
14
-
15
- _defineProperty(this, "apiTemplate", void 0);
16
- }
17
-
18
- setAvailableFields(availableFields) {
19
- this.availableFields = availableFields;
20
- return this;
21
- }
22
-
23
- setSelectedFields(selectedFields) {
24
- this.selectedFields = selectedFields;
25
- return this;
26
- }
27
-
28
- setAvailableFieldsFetchingStatus(isAvailableFieldsFetching) {
29
- this.isAvailableFieldsFetching = isAvailableFieldsFetching;
30
- return this;
31
- }
32
-
33
- setSelectedFieldsFetchingStatus(isSelectedFieldsFetching) {
34
- this.isSelectedFieldsFetching = isSelectedFieldsFetching;
35
- return this;
36
- }
37
-
38
- setApiTemplate(apiTemplate) {
39
- this.apiTemplate = apiTemplate;
40
- return this;
41
- }
42
-
43
- build() {
44
- return new FieldsManager(this.availableFields, this.selectedFields, this.isAvailableFieldsFetching, this.isSelectedFieldsFetching, this.apiTemplate);
45
- }
46
-
47
- }
48
-
49
- export default FieldsManagerBuilder;
@@ -1 +0,0 @@
1
- export { ITemplateHelpers } from "../../../entities/interfaces/api-template/ITemplateHelpers";
@@ -1,2 +0,0 @@
1
- import FieldApiName from "../../../entities/interfaces/FieldApiName";
2
- export { FieldApiName };
@@ -1,15 +0,0 @@
1
- import List from "../../entities/List";
2
-
3
- class ListFactory {
4
- static createList(input) {
5
- const {
6
- limit,
7
- sortBy,
8
- filter
9
- } = input;
10
- return new List(limit, sortBy, filter);
11
- }
12
-
13
- }
14
-
15
- export default ListFactory;
@@ -1,30 +0,0 @@
1
- export default class TemplateHelpers {
2
- getPathValue(path, obj) {
3
- return path.split('.').reduce(function (prev, curr) {
4
- return prev ? prev[curr] : undefined;
5
- }, obj);
6
- }
7
-
8
- replaceTemplateVariables(inputString, replacementObj) {
9
- return inputString.replace(/{{(.*?)}}/g, (match, key) => {
10
- let value = this.getPathValue(key.trim(), replacementObj);
11
-
12
- if (Array.isArray(value) || value instanceof Object) {
13
- return JSON.stringify(value);
14
- }
15
-
16
- return value !== undefined ? value : match;
17
- });
18
- }
19
-
20
- objectToQueryString(obj) {
21
- return Object.keys(obj).map(key => encodeURIComponent(key) + '=' + encodeURIComponent(obj[key])).join('&');
22
- }
23
-
24
- constructQueryString(inputString, replacementObj) {
25
- const replacedString = this.replaceTemplateVariables(inputString, replacementObj);
26
- const parsedObj = JSON.parse(replacedString);
27
- return this.objectToQueryString(parsedObj);
28
- }
29
-
30
- }
@@ -1,75 +0,0 @@
1
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
-
3
- class APITemplate {
4
- constructor(input, templateHelpers) {
5
- _defineProperty(this, "input", void 0);
6
-
7
- _defineProperty(this, "api", void 0);
8
-
9
- _defineProperty(this, "payload", void 0);
10
-
11
- _defineProperty(this, "parameters", void 0);
12
-
13
- _defineProperty(this, "type", void 0);
14
-
15
- _defineProperty(this, "helper", void 0);
16
-
17
- this.input = input;
18
- this.api = input.api;
19
- this.payload = input.requestBody;
20
- this.parameters = input.parameters;
21
- this.type = input.type;
22
- this.helper = templateHelpers;
23
- }
24
-
25
- getApi(obj) {
26
- return this.helper.replaceTemplateVariables(this.api, obj);
27
- }
28
-
29
- getPayload(obj) {
30
- if (this.payload) {
31
- return this.helper.replaceTemplateVariables(this.payload, obj);
32
- } else {
33
- return `{}`;
34
- }
35
- }
36
-
37
- getParameter(obj) {
38
- if (this.parameters) {
39
- return this.helper.replaceTemplateVariables(this.parameters, obj);
40
- } else {
41
- return `""`;
42
- }
43
- }
44
-
45
- constructURL(obj) {
46
- const queryObj = JSON.parse(this.getParameter(obj));
47
- const query = this.helper.objectToQueryString(queryObj);
48
-
49
- if (query === '') {
50
- return this.getApi(obj);
51
- }
52
-
53
- return `${this.getApi(obj)}?${query}`;
54
- }
55
-
56
- getApiDetails(obj) {
57
- return {
58
- url: this.constructURL(obj),
59
- type: this.type,
60
- method: this.type,
61
- payload: this.getPayload(obj)
62
- };
63
- }
64
-
65
- getTransformer() {
66
- return this.input.transformer;
67
- }
68
-
69
- toObject() {
70
- return this.input;
71
- }
72
-
73
- }
74
-
75
- export default APITemplate;
@@ -1,24 +0,0 @@
1
- class APITemplates {
2
- constructor(apiTemplates) {
3
- this.apiTemplates = apiTemplates;
4
- }
5
-
6
- getAPITemplateByName(name) {
7
- return this.apiTemplates.get(name);
8
- }
9
-
10
- getApiDetails(actionName, props) {
11
- return this.getAPITemplateByName(actionName).getApiDetails(props);
12
- }
13
-
14
- toObject() {
15
- const output = {};
16
- this.apiTemplates.forEach((record, apiName) => {
17
- output[apiName] = record.toObject();
18
- });
19
- return output;
20
- }
21
-
22
- }
23
-
24
- export default APITemplates;