runlify 0.0.714 → 0.0.716

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 (352) hide show
  1. package/build/cli.js +20 -52
  2. package/build/commands/availableEnvironments.js +16 -51
  3. package/build/commands/generate.js +10 -46
  4. package/build/commands/init.js +73 -140
  5. package/build/commands/login.js +6 -42
  6. package/build/commands/logout.js +5 -41
  7. package/build/commands/pullEnvs.js +23 -70
  8. package/build/commands/readEnv.js +16 -45
  9. package/build/commands/regen.js +17 -48
  10. package/build/commands/runlify.js +6 -37
  11. package/build/commands/showToken.js +14 -45
  12. package/build/commands/start.js +57 -84
  13. package/build/commands/tryGetMeta.js +7 -43
  14. package/build/documentation/algoritmToDoc.js +4 -4
  15. package/build/documentation/algoritmToDoc.spec.js +5 -5
  16. package/build/documentation/curlExampleToText.js +15 -16
  17. package/build/documentation/curlExampleToText.spec.js +32 -16
  18. package/build/documentation/doc.js +1 -2
  19. package/build/documentation/docToFlatDoc.js +13 -17
  20. package/build/documentation/docToFlatDoc.spec.js +9 -9
  21. package/build/documentation/flatDoc.js +1 -2
  22. package/build/documentation/flatDocToText.js +4 -6
  23. package/build/documentation/flatDocToText.spec.js +20 -8
  24. package/build/documentation/templateDoc.js +1 -2
  25. package/build/documentation/templateDocToDoc.js +2 -2
  26. package/build/extensions/auth.js +64 -124
  27. package/build/extensions/cli-extension.js +3 -3
  28. package/build/extensions/cloudEnv.js +76 -120
  29. package/build/extensions/cloudMeta.js +35 -73
  30. package/build/extensions/globalConfig.js +37 -80
  31. package/build/extensions/localConfig.js +15 -46
  32. package/build/extensions/preventRunningIfUpdateAvailable.js +18 -52
  33. package/build/log.js +6 -6
  34. package/build/projectsGeneration/args.js +33 -53
  35. package/build/projectsGeneration/builders/AdditionalServiceBuilder.js +62 -96
  36. package/build/projectsGeneration/builders/BaseBuilder.js +30 -34
  37. package/build/projectsGeneration/builders/BaseSavableEntityBuilder.js +272 -312
  38. package/build/projectsGeneration/builders/CatalogBuilder.js +17 -46
  39. package/build/projectsGeneration/builders/ConfigVarBuilder.js +25 -36
  40. package/build/projectsGeneration/builders/DeploymentBuilder.js +18 -47
  41. package/build/projectsGeneration/builders/DocumentBuilder.js +26 -56
  42. package/build/projectsGeneration/builders/InfoRegistryBuilder.js +106 -140
  43. package/build/projectsGeneration/builders/PageBuilder.js +22 -51
  44. package/build/projectsGeneration/builders/PermissionBuilder.js +12 -41
  45. package/build/projectsGeneration/builders/ReportBuilder.js +23 -52
  46. package/build/projectsGeneration/builders/RestApiBuilder.js +20 -50
  47. package/build/projectsGeneration/builders/RestApiMethodBuilder.js +25 -54
  48. package/build/projectsGeneration/builders/RoleBuilder.js +12 -41
  49. package/build/projectsGeneration/builders/SumRegistryBuilder.js +100 -133
  50. package/build/projectsGeneration/builders/SystemMetaBuilder.js +281 -324
  51. package/build/projectsGeneration/builders/TelegramBotBuilder.js +18 -47
  52. package/build/projectsGeneration/builders/docs/DocumentationOfDocumentBuilder.js +8 -9
  53. package/build/projectsGeneration/builders/fields/BaseFieldBuilder.js +89 -105
  54. package/build/projectsGeneration/builders/fields/IdFieldBuilder.js +24 -54
  55. package/build/projectsGeneration/builders/fields/LinkFieldBuilder.js +33 -62
  56. package/build/projectsGeneration/builders/fields/ModelFieldBuilder.js +18 -47
  57. package/build/projectsGeneration/builders/fields/ScalarFieldBuilder.js +11 -42
  58. package/build/projectsGeneration/builders/fields/ViewLinkFieldBuilder.js +26 -55
  59. package/build/projectsGeneration/builders/integrationClients/IntegrationClientArgsModelBuilder.js +6 -23
  60. package/build/projectsGeneration/builders/integrationClients/IntegrationClientBaseModelBuilder.js +28 -57
  61. package/build/projectsGeneration/builders/integrationClients/IntegrationClientBuilder.js +25 -54
  62. package/build/projectsGeneration/builders/integrationClients/IntegrationClientQueryMethodsBuilder.js +18 -47
  63. package/build/projectsGeneration/builders/integrationClients/IntegrationClientReturnModelBuilder.js +12 -41
  64. package/build/projectsGeneration/builders/materialUiIcons.js +2 -2
  65. package/build/projectsGeneration/builders/mehods/ArgsModelBuilder.js +6 -23
  66. package/build/projectsGeneration/builders/mehods/BaseModelBuilder.js +30 -59
  67. package/build/projectsGeneration/builders/mehods/MethodBuilder.js +36 -66
  68. package/build/projectsGeneration/builders/mehods/ReturnModelBuilder.js +12 -41
  69. package/build/projectsGeneration/builders/menu/BaseMenuItemBuilder.js +24 -54
  70. package/build/projectsGeneration/builders/menu/ExternalEnvMenuItemBuilder.js +11 -40
  71. package/build/projectsGeneration/builders/menu/ExternalMenuItemBuilder.js +11 -40
  72. package/build/projectsGeneration/builders/menu/GroupMenuItemBuilder.js +31 -66
  73. package/build/projectsGeneration/builders/menu/InternalMenuItemBuilder.js +16 -45
  74. package/build/projectsGeneration/builders/tsFilterFields.js +11 -12
  75. package/build/projectsGeneration/builders/tsFilterFields.spec.js +29 -11
  76. package/build/projectsGeneration/builders/ui/FormsBuilder.js +9 -10
  77. package/build/projectsGeneration/builders/ui/ListFormBuilder.js +9 -10
  78. package/build/projectsGeneration/builders/ui/ListFormFilterBuilder.js +14 -16
  79. package/build/projectsGeneration/builders/ui/ListFormFilterFieldBuilder.js +8 -9
  80. package/build/projectsGeneration/builders/utils/accessFunctions.js +4 -4
  81. package/build/projectsGeneration/builders/validation/baseValudationToYupAssertions.js +4 -4
  82. package/build/projectsGeneration/builders/validation/bigintValudationToYupAssertions.js +5 -5
  83. package/build/projectsGeneration/builders/validation/bigintValudationToYupAssertions.spec.js +7 -7
  84. package/build/projectsGeneration/builders/validation/floatValudationToYupAssertions.js +4 -4
  85. package/build/projectsGeneration/builders/validation/floatValudationToYupAssertions.spec.js +6 -6
  86. package/build/projectsGeneration/builders/validation/intValudationToYupAssertions.js +9 -9
  87. package/build/projectsGeneration/builders/validation/intValudationToYupAssertions.spec.js +9 -9
  88. package/build/projectsGeneration/builders/validation/numberValudationToYupAssertions.js +10 -10
  89. package/build/projectsGeneration/builders/validation/stringValudationToYupAssertions.js +6 -6
  90. package/build/projectsGeneration/builders/validation/stringValudationToYupAssertions.spec.js +6 -6
  91. package/build/projectsGeneration/commonEntities/addAggregateTrackings.js +3 -3
  92. package/build/projectsGeneration/commonEntities/addAuditLogs.js +6 -6
  93. package/build/projectsGeneration/commonEntities/addAutogeneration.js +4 -4
  94. package/build/projectsGeneration/commonEntities/addCommonCommands.js +2 -2
  95. package/build/projectsGeneration/commonEntities/addCommonEntities.js +14 -14
  96. package/build/projectsGeneration/commonEntities/addConfigurationVariables.js +4 -4
  97. package/build/projectsGeneration/commonEntities/addLanguages.js +3 -3
  98. package/build/projectsGeneration/commonEntities/addManagers.js +6 -6
  99. package/build/projectsGeneration/commonEntities/addRefreshTokens.js +4 -4
  100. package/build/projectsGeneration/commonEntities/addRoles.js +8 -8
  101. package/build/projectsGeneration/commonEntities/addTenants.js +3 -3
  102. package/build/projectsGeneration/commonEntities/addUserSettings.js +7 -7
  103. package/build/projectsGeneration/commonEntities/addUsers.js +4 -4
  104. package/build/projectsGeneration/defaultCatalogs/addElasticSearch.js +12 -13
  105. package/build/projectsGeneration/defaultCatalogs/files.js +6 -6
  106. package/build/projectsGeneration/fileCleaners/back/graphServices/cleanGraphServices.js +24 -59
  107. package/build/projectsGeneration/fileCleaners/back/services/cleanServices.js +32 -67
  108. package/build/projectsGeneration/fileCleaners/cleanFiles.js +7 -38
  109. package/build/projectsGeneration/fileCleaners/ui/cleanUi.js +7 -39
  110. package/build/projectsGeneration/fileCleaners/ui/pages/cleanPages.js +24 -59
  111. package/build/projectsGeneration/fileCleaners/ui/widgets/cleanWidgets.js +10 -40
  112. package/build/projectsGeneration/fileCleaners/ui/widgets/cleanWidgetsByType.js +29 -62
  113. package/build/projectsGeneration/genGraphSchemesByLocalGenerator.js +26 -68
  114. package/build/projectsGeneration/generateAdditionalService.js +41 -98
  115. package/build/projectsGeneration/generateEntity.js +215 -346
  116. package/build/projectsGeneration/generateEnvironment.js +157 -265
  117. package/build/projectsGeneration/generateProject.js +422 -724
  118. package/build/projectsGeneration/generators/fieldTypeToTsType.js +4 -4
  119. package/build/projectsGeneration/generators/fileTemplates/back/Entities.js +16 -14
  120. package/build/projectsGeneration/generators/fileTemplates/back/devEnum.js +17 -13
  121. package/build/projectsGeneration/generators/fileTemplates/back/elastic/elastic.js +8 -44
  122. package/build/projectsGeneration/generators/fileTemplates/back/elastic/jobs.js +36 -26
  123. package/build/projectsGeneration/generators/fileTemplates/back/enum.js +17 -13
  124. package/build/projectsGeneration/generators/fileTemplates/back/environment/chart/Chart.js +12 -8
  125. package/build/projectsGeneration/generators/fileTemplates/back/environment/chart/templates/back.js +128 -12
  126. package/build/projectsGeneration/generators/fileTemplates/back/environment/chart/templates/ingress.js +54 -8
  127. package/build/projectsGeneration/generators/fileTemplates/back/environment/chart/values.js +149 -13
  128. package/build/projectsGeneration/generators/fileTemplates/back/environment/ciNotify.js +19 -8
  129. package/build/projectsGeneration/generators/fileTemplates/back/environment/defaultEnv.js +5 -9
  130. package/build/projectsGeneration/generators/fileTemplates/back/environment/dockerfileTmplBack.js +38 -8
  131. package/build/projectsGeneration/generators/fileTemplates/back/environment/dockerfileTmplUI.js +42 -8
  132. package/build/projectsGeneration/generators/fileTemplates/back/environment/docs/backDocSpec.js +3 -6
  133. package/build/projectsGeneration/generators/fileTemplates/back/environment/docs/backDocsConfiguration.js +27 -19
  134. package/build/projectsGeneration/generators/fileTemplates/back/environment/docs/backDocsEntity.js +7 -5
  135. package/build/projectsGeneration/generators/fileTemplates/back/environment/docs/backDocsIntegrationClient.js +44 -29
  136. package/build/projectsGeneration/generators/fileTemplates/back/environment/docs/backDocsRestApi.js +45 -18
  137. package/build/projectsGeneration/generators/fileTemplates/back/environment/docs/spec/findLinksToEntities.js +2 -4
  138. package/build/projectsGeneration/generators/fileTemplates/back/environment/docs/spec/getAllSavableEntities.js +7 -11
  139. package/build/projectsGeneration/generators/fileTemplates/back/environment/docs/spec/getProjectSpec.js +206 -216
  140. package/build/projectsGeneration/generators/fileTemplates/back/environment/docs/spec/titleMd.js +5 -5
  141. package/build/projectsGeneration/generators/fileTemplates/back/environment/gitlabCi.js +272 -37
  142. package/build/projectsGeneration/generators/fileTemplates/back/environment/src/clients/getPrisma.js +78 -9
  143. package/build/projectsGeneration/generators/fileTemplates/back/environment/src/clients/queue/getQueue.js +42 -9
  144. package/build/projectsGeneration/generators/fileTemplates/back/environment/src/index.js +36 -9
  145. package/build/projectsGeneration/generators/fileTemplates/back/environment/src/integrationClients/IntegrationClient.js +56 -5
  146. package/build/projectsGeneration/generators/fileTemplates/back/environment/src/integrationClients/IntegrationClients.js +12 -9
  147. package/build/projectsGeneration/generators/fileTemplates/back/environment/src/integrationClients/fieldsToTsTypeFields.js +4 -6
  148. package/build/projectsGeneration/generators/fileTemplates/back/environment/src/integrationClients/integrationClientConstrictors.js +13 -9
  149. package/build/projectsGeneration/generators/fileTemplates/back/environment/src/integrationClients/tsModelTmpl.js +6 -4
  150. package/build/projectsGeneration/generators/fileTemplates/back/environment/src/integrationClients/types.js +15 -7
  151. package/build/projectsGeneration/generators/fileTemplates/back/graph/additionalResolvers.js +9 -2
  152. package/build/projectsGeneration/generators/fileTemplates/back/graph/additionalService/permissionToGraphql.js +16 -9
  153. package/build/projectsGeneration/generators/fileTemplates/back/graph/additionalService/resolvers.js +32 -12
  154. package/build/projectsGeneration/generators/fileTemplates/back/graph/additionalService/typeDefs.js +18 -11
  155. package/build/projectsGeneration/generators/fileTemplates/back/graph/additionalTypes.js +7 -2
  156. package/build/projectsGeneration/generators/fileTemplates/back/graph/entityAdditionalPermissionToGraphqlTmpl.js +20 -9
  157. package/build/projectsGeneration/generators/fileTemplates/back/graph/entityBasePermissionToGraphql.js +22 -10
  158. package/build/projectsGeneration/generators/fileTemplates/back/graph/entityPermissionToGraphqlTmpl.js +18 -9
  159. package/build/projectsGeneration/generators/fileTemplates/back/graph/help/baseResolvers.js +17 -2
  160. package/build/projectsGeneration/generators/fileTemplates/back/graph/help/baseTypeDefs.js +15 -5
  161. package/build/projectsGeneration/generators/fileTemplates/back/graph/help/permissionsToGraphql.js +11 -2
  162. package/build/projectsGeneration/generators/fileTemplates/back/graph/meta/resolvers.js +26 -2
  163. package/build/projectsGeneration/generators/fileTemplates/back/graph/meta/typeDefs.js +17 -2
  164. package/build/projectsGeneration/generators/fileTemplates/back/graph/permissionsToGraphql.js +52 -13
  165. package/build/projectsGeneration/generators/fileTemplates/back/graph/resolvers.js +52 -13
  166. package/build/projectsGeneration/generators/fileTemplates/back/graph/types.js +18 -11
  167. package/build/projectsGeneration/generators/fileTemplates/back/initCommon.js +30 -16
  168. package/build/projectsGeneration/generators/fileTemplates/back/initDev.js +27 -15
  169. package/build/projectsGeneration/generators/fileTemplates/back/initEntities.js +24 -10
  170. package/build/projectsGeneration/generators/fileTemplates/back/root/config/config.js +31 -16
  171. package/build/projectsGeneration/generators/fileTemplates/back/root/restRouter.js +21 -2
  172. package/build/projectsGeneration/generators/fileTemplates/back/services/AdditionalServices.js +7 -2
  173. package/build/projectsGeneration/generators/fileTemplates/back/services/BaseServices.js +18 -22
  174. package/build/projectsGeneration/generators/fileTemplates/back/services/HelpService/HelpService.js +30 -7
  175. package/build/projectsGeneration/generators/fileTemplates/back/services/additionalService/types.js +18 -13
  176. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/additionalClass.js +7 -5
  177. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/class.js +126 -49
  178. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/config.js +59 -40
  179. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/hooks/additionalOperationsOnCreate.js +13 -5
  180. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/hooks/additionalOperationsOnDelete.js +14 -6
  181. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/hooks/additionalOperationsOnUpdate.js +14 -6
  182. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/hooks/afterCreate.js +15 -6
  183. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/hooks/afterDelete.js +15 -6
  184. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/hooks/afterUpdate.js +15 -6
  185. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/hooks/beforeCreate.js +15 -6
  186. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/hooks/beforeDelete.js +15 -6
  187. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/hooks/beforeUpdate.js +14 -6
  188. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/hooks/beforeUpsert.js +30 -7
  189. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/hooks/changeListFilter.js +14 -6
  190. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/hooks/tenantIdRequiredHooks.js +81 -8
  191. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/initBuiltInHooks.js +22 -10
  192. package/build/projectsGeneration/generators/fileTemplates/back/services/entity/initUserHooks.js +31 -6
  193. package/build/projectsGeneration/generators/fileTemplates/back/services/serviceConstrictors.js +26 -14
  194. package/build/projectsGeneration/generators/fileTemplates/ui/Dashboard.js +14 -2
  195. package/build/projectsGeneration/generators/fileTemplates/ui/MetaPage.js +120 -3
  196. package/build/projectsGeneration/generators/fileTemplates/ui/ResourcesPage.js +45 -10
  197. package/build/projectsGeneration/generators/fileTemplates/ui/additionalRoutes.js +5 -2
  198. package/build/projectsGeneration/generators/fileTemplates/ui/entityMapping.js +14 -12
  199. package/build/projectsGeneration/generators/fileTemplates/ui/environment/chart/Chart.js +12 -8
  200. package/build/projectsGeneration/generators/fileTemplates/ui/environment/chart/templates/front.js +118 -13
  201. package/build/projectsGeneration/generators/fileTemplates/ui/environment/chart/templates/ingress.js +51 -8
  202. package/build/projectsGeneration/generators/fileTemplates/ui/environment/chart/values.js +79 -8
  203. package/build/projectsGeneration/generators/fileTemplates/ui/environment/ciNotify.js +19 -8
  204. package/build/projectsGeneration/generators/fileTemplates/ui/environment/docs/adminAppDocsConfiguration.js +27 -21
  205. package/build/projectsGeneration/generators/fileTemplates/ui/environment/gitlabCi.js +179 -26
  206. package/build/projectsGeneration/generators/fileTemplates/ui/environment/src/App.js +107 -10
  207. package/build/projectsGeneration/generators/fileTemplates/ui/environment/src/contexts/SpacesContext.js +67 -9
  208. package/build/projectsGeneration/generators/fileTemplates/ui/environment/src/dataProvider/getAdditionalMethods.js +55 -18
  209. package/build/projectsGeneration/generators/fileTemplates/ui/environment/src/dataProvider/index.js +93 -13
  210. package/build/projectsGeneration/generators/fileTemplates/ui/environment/src/i18nProvider/index.js +51 -19
  211. package/build/projectsGeneration/generators/fileTemplates/ui/environment/src/layout/AppBar.js +60 -9
  212. package/build/projectsGeneration/generators/fileTemplates/ui/environment/src/layout/Menu.js +52 -9
  213. package/build/projectsGeneration/generators/fileTemplates/ui/environment/src/routes.js +38 -9
  214. package/build/projectsGeneration/generators/fileTemplates/ui/functions/Functions.js +60 -7
  215. package/build/projectsGeneration/generators/fileTemplates/ui/getAdditionalMenu.js +11 -2
  216. package/build/projectsGeneration/generators/fileTemplates/ui/getDefaultMenu.js +136 -23
  217. package/build/projectsGeneration/generators/fileTemplates/ui/i18n/lang/uiLangCatalogsTmpl.js +3 -5
  218. package/build/projectsGeneration/generators/fileTemplates/ui/i18n/lang/uiLangDocsTmpl.js +3 -5
  219. package/build/projectsGeneration/generators/fileTemplates/ui/i18n/lang/uiLangInfoRegistriesTmpl.js +3 -5
  220. package/build/projectsGeneration/generators/fileTemplates/ui/i18n/lang/uiLangReportsTmpl.js +3 -3
  221. package/build/projectsGeneration/generators/fileTemplates/ui/i18n/lang/uiLangSumRegistriesTmpl.js +3 -5
  222. package/build/projectsGeneration/generators/fileTemplates/ui/i18n/lang/uiTranslationsForServicesOfSavablesTmpl.js +33 -21
  223. package/build/projectsGeneration/generators/fileTemplates/ui/i18n/lang/uiTranslationsLangTmpl.js +23 -15
  224. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityCreate/DefaultEntityCreate.js +101 -62
  225. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityCreate/index.js +15 -5
  226. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityEdit/DefaultEntityEdit.js +176 -77
  227. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityEdit/index.js +15 -5
  228. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityList/DefaultEntityFilter.js +68 -50
  229. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityList/DefaultEntityList.js +83 -47
  230. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityList/EntityFilter.js +12 -5
  231. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityList/index.js +15 -5
  232. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityShow/DefaultActions.js +54 -19
  233. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityShow/DefaultEntityShow.js +53 -30
  234. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityShow/DefaultMainTab.js +45 -32
  235. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityShow/DependencyTab.js +57 -41
  236. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityShow/MainTab.js +3 -2
  237. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityShow/additionalTabs.js +7 -3
  238. package/build/projectsGeneration/generators/fileTemplates/ui/pages/EntityShow/index.js +15 -5
  239. package/build/projectsGeneration/generators/fileTemplates/ui/pages/Icon.js +8 -8
  240. package/build/projectsGeneration/generators/fileTemplates/ui/pages/getEntityValidation.js +45 -30
  241. package/build/projectsGeneration/generators/fileTemplates/ui/resources.js +46 -12
  242. package/build/projectsGeneration/generators/fileTemplates/ui/widgets/count/CountWidget.js +50 -9
  243. package/build/projectsGeneration/generators/fileTemplates/ui/widgets/list/ListWidget.js +109 -14
  244. package/build/projectsGeneration/generators/graph/fieldTypeToGraphScalar.js +8 -9
  245. package/build/projectsGeneration/generators/graph/fieldTypeToGraphScalarStringified.js +4 -6
  246. package/build/projectsGeneration/generators/graph/fields/genGraphField.js +8 -9
  247. package/build/projectsGeneration/generators/graph/fields/genGraphIdField.js +7 -8
  248. package/build/projectsGeneration/generators/graph/fields/genGraphIdFieldType.js +6 -6
  249. package/build/projectsGeneration/generators/graph/fields/genGraphLinkField.js +10 -11
  250. package/build/projectsGeneration/generators/graph/fields/genGraphModelField.js +10 -11
  251. package/build/projectsGeneration/generators/graph/fields/genGraphScalarField.js +10 -11
  252. package/build/projectsGeneration/generators/graph/filters/genGraphField.js +7 -7
  253. package/build/projectsGeneration/generators/graph/filters/genGraphIdFilter.js +12 -14
  254. package/build/projectsGeneration/generators/graph/filters/genGraphLinkFilter.js +12 -24
  255. package/build/projectsGeneration/generators/graph/filters/genGraphScalarFilter.js +25 -37
  256. package/build/projectsGeneration/generators/graph/genGraphAdditionalServiceSchema.js +35 -35
  257. package/build/projectsGeneration/generators/graph/genGraphAdditionalServiceSchema.spec.js +148 -65
  258. package/build/projectsGeneration/generators/graph/genGraphCrudSchema.js +38 -50
  259. package/build/projectsGeneration/generators/graph/genGraphCrudSchema.spec.js +393 -34
  260. package/build/projectsGeneration/generators/graph/genGraphFilterType.js +11 -22
  261. package/build/projectsGeneration/generators/graph/genGraphFilterType.spec.js +75 -13
  262. package/build/projectsGeneration/generators/graph/genGraphModelType.js +15 -27
  263. package/build/projectsGeneration/generators/graph/genGraphType.js +7 -18
  264. package/build/projectsGeneration/generators/graph/genGraphType.spec.js +27 -12
  265. package/build/projectsGeneration/generators/graph/printGraphType.js +5 -7
  266. package/build/projectsGeneration/generators/graph/printGraphType.spec.js +11 -6
  267. package/build/projectsGeneration/generators/graph/utils/mapUtils.js +11 -30
  268. package/build/projectsGeneration/generators/graph/utils/models/getModelInitOrder.js +14 -28
  269. package/build/projectsGeneration/generators/graph/utils/models/getModelInitOrder.spec.js +18 -18
  270. package/build/projectsGeneration/generators/graph/utils/models/getUniqModels.js +3 -3
  271. package/build/projectsGeneration/generators/graph/utils/models/getUniqModels.spec.js +17 -28
  272. package/build/projectsGeneration/generators/graph/utils/models/getUsedModels.js +14 -19
  273. package/build/projectsGeneration/generators/graph/utils/models/getUsedModels.spec.js +40 -51
  274. package/build/projectsGeneration/generators/graph/utils/serviceModels/augmentInputModelsByUsedAsInputGeneralModelsAndPostfixThemByInput.js +17 -26
  275. package/build/projectsGeneration/generators/graph/utils/serviceModels/augmentInputModelsByUsedAsInputGeneralModelsAndPostfixThemByInput.spec.js +68 -68
  276. package/build/projectsGeneration/generators/graph/utils/serviceModels/getGraphTypesFromInputOutputModels.js +21 -42
  277. package/build/projectsGeneration/generators/graph/utils/serviceModels/getGraphTypesFromInputOutputModels.spec.js +85 -62
  278. package/build/projectsGeneration/generators/graph/utils/serviceModels/getPreparedModelsForGraph.js +20 -31
  279. package/build/projectsGeneration/generators/graph/utils/serviceModels/getPreparedModelsForGraph.spec.js +48 -49
  280. package/build/projectsGeneration/generators/graph/utils/serviceModels/getServiceModels.js +7 -7
  281. package/build/projectsGeneration/generators/graph/utils/serviceModels/getUsedGraphModelsForService.js +6 -6
  282. package/build/projectsGeneration/generators/graph/utils/serviceModels/getUsedGraphModelsForService.spec.js +13 -13
  283. package/build/projectsGeneration/generators/graph/utils/serviceModels/getUsedModelsForService.js +18 -21
  284. package/build/projectsGeneration/generators/graph/utils/serviceModels/getUsedModelsForService.spec.js +153 -153
  285. package/build/projectsGeneration/generators/graph/utils/serviceModels/prefixServiceModelsWithServiceName.js +25 -26
  286. package/build/projectsGeneration/generators/graph/utils/serviceModels/prefixServiceModelsWithServiceName.spec.js +69 -69
  287. package/build/projectsGeneration/generators/graph/utils/serviceModels/removeDublicatesFromServiceModels.js +4 -4
  288. package/build/projectsGeneration/generators/graph/utils/serviceModels/removeUnusedInOutputGeneralModels.js +6 -17
  289. package/build/projectsGeneration/generators/graph/utils/serviceModels/removeVoidsInServiceModels.js +5 -5
  290. package/build/projectsGeneration/generators/prisma/fieldIdTypeToPrismaType.js +3 -3
  291. package/build/projectsGeneration/generators/prisma/fieldTypeToPrismaType.js +3 -3
  292. package/build/projectsGeneration/generators/prisma/scheme/fields/genPrismaDefault.js +3 -3
  293. package/build/projectsGeneration/generators/prisma/scheme/fields/genPrismaDefault.spec.js +20 -20
  294. package/build/projectsGeneration/generators/prisma/scheme/fields/genPrismaField.js +7 -8
  295. package/build/projectsGeneration/generators/prisma/scheme/fields/genPrismaFieldFromExternalEntity.js +6 -7
  296. package/build/projectsGeneration/generators/prisma/scheme/fields/genPrismaFieldFromExternalEntity.spec.js +7 -19
  297. package/build/projectsGeneration/generators/prisma/scheme/fields/genPrismaIdField.js +10 -11
  298. package/build/projectsGeneration/generators/prisma/scheme/fields/genPrismaIdField.spec.js +13 -13
  299. package/build/projectsGeneration/generators/prisma/scheme/fields/genPrismaLinkFields.js +15 -18
  300. package/build/projectsGeneration/generators/prisma/scheme/fields/genPrismaLinkFields.spec.js +27 -28
  301. package/build/projectsGeneration/generators/prisma/scheme/fields/genPrismaScalarField.js +12 -14
  302. package/build/projectsGeneration/generators/prisma/scheme/fields/genPrismaScalarField.spec.js +29 -30
  303. package/build/projectsGeneration/generators/prisma/scheme/genPrismaEntity.js +23 -32
  304. package/build/projectsGeneration/generators/prisma/scheme/genPrismaEntity.spec.js +104 -47
  305. package/build/projectsGeneration/generators/prisma/scheme/genPrismaSchemaForEntities.js +5 -7
  306. package/build/projectsGeneration/generators/prisma/scheme/genPrismaSchemaForEntitiesWithClientAdnDb.js +19 -10
  307. package/build/projectsGeneration/generators/ui/componentNames/edit/getCompNameToEditScalar.js +3 -3
  308. package/build/projectsGeneration/generators/ui/componentNames/edit/getCompNamesToEditField.js +7 -7
  309. package/build/projectsGeneration/generators/ui/componentNames/edit/getCompNamesToEditIdField.js +3 -3
  310. package/build/projectsGeneration/generators/ui/componentNames/edit/getCompNamesToEditLinkField.js +5 -5
  311. package/build/projectsGeneration/generators/ui/componentNames/edit/getCompNamesToEditLinkField.spec.js +10 -10
  312. package/build/projectsGeneration/generators/ui/componentNames/edit/getCompNamesToEditScalarField.js +3 -3
  313. package/build/projectsGeneration/generators/ui/componentNames/show/getCompNameToShowScalar.js +3 -3
  314. package/build/projectsGeneration/generators/ui/componentNames/show/getCompNamesToShowField.js +7 -7
  315. package/build/projectsGeneration/generators/ui/componentNames/show/getCompNamesToShowIdField.js +3 -3
  316. package/build/projectsGeneration/generators/ui/componentNames/show/getCompNamesToShowLinkField.js +2 -14
  317. package/build/projectsGeneration/generators/ui/componentNames/show/getCompNamesToShowLinkField.spec.js +17 -17
  318. package/build/projectsGeneration/generators/ui/componentNames/show/getCompNamesToShowScalarField.js +3 -3
  319. package/build/projectsGeneration/generators/ui/getLinkShowComponent.spec.js +18 -18
  320. package/build/projectsGeneration/generators/ui/getScalarShowComponent.spec.js +11 -11
  321. package/build/projectsGeneration/generators/ui/getShowComponent.js +19 -20
  322. package/build/projectsGeneration/links/getLinksFromExternalEntities.js +2 -4
  323. package/build/projectsGeneration/links/getLinksFromExternalEntities.spec.js +11 -22
  324. package/build/projectsGeneration/links/getLinksOfEntities.js +6 -8
  325. package/build/projectsGeneration/links/getLinksOfEntities.spec.js +20 -31
  326. package/build/projectsGeneration/links/getLinksToExternalEntities.js +2 -4
  327. package/build/projectsGeneration/links/getLinksToExternalEntities.spec.js +11 -22
  328. package/build/projectsGeneration/metaUtils.js +17 -23
  329. package/build/projectsGeneration/modelsGeneration.serialization.spec.js +8 -8
  330. package/build/projectsGeneration/modules/addEmailModuleEntities.js +11 -11
  331. package/build/projectsGeneration/types.js +6 -6
  332. package/build/projectsGeneration/utils.js +24 -61
  333. package/build/refs/yup.spec.js +7 -7
  334. package/build/types/projectsGeneration/builders/InfoRegistryBuilder.d.ts +0 -4
  335. package/build/types/projectsGeneration/builders/SumRegistryBuilder.d.ts +0 -3
  336. package/build/types/projectsGeneration/fileCleaners/cleanFiles.d.ts +1 -1
  337. package/build/types/projectsGeneration/generateProject.d.ts +0 -5
  338. package/build/types/projectsGeneration/generators/fileTemplates/back/environment/chart/templates/back.d.ts +1 -1
  339. package/build/types/projectsGeneration/generators/fileTemplates/back/environment/chart/templates/ingress.d.ts +1 -1
  340. package/build/types/projectsGeneration/generators/fileTemplates/back/environment/dockerfileTmplBack.d.ts +1 -1
  341. package/build/types/projectsGeneration/generators/fileTemplates/back/environment/dockerfileTmplUI.d.ts +1 -1
  342. package/build/types/projectsGeneration/generators/fileTemplates/back/environment/src/integrationClients/IntegrationClient.d.ts +1 -1
  343. package/build/types/projectsGeneration/generators/fileTemplates/back/services/entity/config.d.ts +1 -1
  344. package/build/types/projectsGeneration/generators/fileTemplates/ui/environment/chart/templates/front.d.ts +1 -1
  345. package/build/types/projectsGeneration/generators/fileTemplates/ui/environment/chart/templates/ingress.d.ts +1 -1
  346. package/build/types/projectsGeneration/generators/fileTemplates/ui/environment/src/App.d.ts +1 -1
  347. package/build/utils/TermSignals.js +35 -43
  348. package/build/utils/cases.js +12 -18
  349. package/build/utils/getPkgManager.js +4 -4
  350. package/package.json +12 -24
  351. package/build/projectsGeneration/fileCleaners/back/cleanBack.js +0 -50
  352. package/build/types/projectsGeneration/fileCleaners/back/cleanBack.d.ts +0 -3
@@ -1,8 +1,125 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uiMetaPageTmpl = void 0;
4
- var uiMetaPageTmpl = function () {
5
- return "import React, {FC} from 'react';\nimport {\n gql,\n useQuery,\n} from '@apollo/client';\nimport {makeStyles, createStyles} from '@mui/styles';\n\nconst useStyles = makeStyles(() => createStyles({\n section: {\n margin: '10px auto',\n },\n catalog: {\n margin: '20px 10px',\n },\n field: {\n margin: '20px 10px',\n },\n}));\n\nconst META_REQUEST = gql`\n query {\n Meta\n }\n`;\n\nconst MetaPage: FC = () => {\n const classes = useStyles();\n const {data: result} = useQuery(META_REQUEST);\n\n return (\n <>\n {result && <div>\n <div className={classes.section}>\n name: {result.Meta.name}\n </div>\n <div className={classes.section}>\n prefix: {result.Meta.prefix}\n </div>\n <div className={classes.section}>\n needFor: {result.Meta.needFor}\n </div>\n <div className={classes.section}>\n deployEnvironments: {result.Meta.deployEnvironments.join(',')}\n </div>\n <div className={classes.section}>\n configVars: {result.Meta.configVars.join(',')}\n </div>\n <div className={classes.section}>\n Catalogs:\n </div>\n <div className={classes.section}>\n {result.Meta.catalogs.map(\n (catalog: any, index: number) => <Catalog catalog={catalog} key={index} />,\n )}\n </div>\n </div>}\n </>\n );\n};\n\nconst Catalog: FC<{catalog: any}> = ({catalog}) => {\n const classes = useStyles();\n\n return (\n <div className={classes.catalog}>\n <div className={classes.section}>\n name: {catalog.name}\n </div>\n <div className={classes.section}>\n needFor: {catalog.needFor}\n </div>\n <div className={classes.section}>\n Fields:\n </div>\n <div className={classes.section}>\n {catalog.fields.map(\n (field: any, index: number) => <Field field={field} key={index} />,\n )}\n </div>\n </div>\n );\n};\n\nconst Field: FC<{field: any}> = ({field}) => {\n const classes = useStyles();\n\n return (\n <div className={classes.field}>\n <div className={classes.section}>\n name: {field.name}\n </div>\n <div className={classes.section}>\n type: {field.type}\n </div>\n <div className={classes.section}>\n required: {field.required?.toString()}\n </div>\n <div className={classes.section}>\n needFor: {field.needFor}\n </div>\n <div className={classes.section}>\n requiredOnInput: {field.requiredOnInput?.toString()}\n </div>\n <div className={classes.section}>\n updatable: {field.updatable?.toString()}\n </div>\n <div className={classes.section}>\n autoGenerated: {field.autoGenerated?.toString()}\n </div>\n <div className={classes.section}>\n category: {field.category}\n </div>\n </div>\n );\n};\n\nexport default MetaPage;\n";
4
+ const uiMetaPageTmpl = () => {
5
+ return `import React, {FC} from 'react';
6
+ import {
7
+ gql,
8
+ useQuery,
9
+ } from '@apollo/client';
10
+ import {makeStyles, createStyles} from '@mui/styles';
11
+
12
+ const useStyles = makeStyles(() => createStyles({
13
+ section: {
14
+ margin: '10px auto',
15
+ },
16
+ catalog: {
17
+ margin: '20px 10px',
18
+ },
19
+ field: {
20
+ margin: '20px 10px',
21
+ },
22
+ }));
23
+
24
+ const META_REQUEST = gql\`
25
+ query {
26
+ Meta
27
+ }
28
+ \`;
29
+
30
+ const MetaPage: FC = () => {
31
+ const classes = useStyles();
32
+ const {data: result} = useQuery(META_REQUEST);
33
+
34
+ return (
35
+ <>
36
+ {result && <div>
37
+ <div className={classes.section}>
38
+ name: {result.Meta.name}
39
+ </div>
40
+ <div className={classes.section}>
41
+ prefix: {result.Meta.prefix}
42
+ </div>
43
+ <div className={classes.section}>
44
+ needFor: {result.Meta.needFor}
45
+ </div>
46
+ <div className={classes.section}>
47
+ deployEnvironments: {result.Meta.deployEnvironments.join(',')}
48
+ </div>
49
+ <div className={classes.section}>
50
+ configVars: {result.Meta.configVars.join(',')}
51
+ </div>
52
+ <div className={classes.section}>
53
+ Catalogs:
54
+ </div>
55
+ <div className={classes.section}>
56
+ {result.Meta.catalogs.map(
57
+ (catalog: any, index: number) => <Catalog catalog={catalog} key={index} />,
58
+ )}
59
+ </div>
60
+ </div>}
61
+ </>
62
+ );
63
+ };
64
+
65
+ const Catalog: FC<{catalog: any}> = ({catalog}) => {
66
+ const classes = useStyles();
67
+
68
+ return (
69
+ <div className={classes.catalog}>
70
+ <div className={classes.section}>
71
+ name: {catalog.name}
72
+ </div>
73
+ <div className={classes.section}>
74
+ needFor: {catalog.needFor}
75
+ </div>
76
+ <div className={classes.section}>
77
+ Fields:
78
+ </div>
79
+ <div className={classes.section}>
80
+ {catalog.fields.map(
81
+ (field: any, index: number) => <Field field={field} key={index} />,
82
+ )}
83
+ </div>
84
+ </div>
85
+ );
86
+ };
87
+
88
+ const Field: FC<{field: any}> = ({field}) => {
89
+ const classes = useStyles();
90
+
91
+ return (
92
+ <div className={classes.field}>
93
+ <div className={classes.section}>
94
+ name: {field.name}
95
+ </div>
96
+ <div className={classes.section}>
97
+ type: {field.type}
98
+ </div>
99
+ <div className={classes.section}>
100
+ required: {field.required?.toString()}
101
+ </div>
102
+ <div className={classes.section}>
103
+ needFor: {field.needFor}
104
+ </div>
105
+ <div className={classes.section}>
106
+ requiredOnInput: {field.requiredOnInput?.toString()}
107
+ </div>
108
+ <div className={classes.section}>
109
+ updatable: {field.updatable?.toString()}
110
+ </div>
111
+ <div className={classes.section}>
112
+ autoGenerated: {field.autoGenerated?.toString()}
113
+ </div>
114
+ <div className={classes.section}>
115
+ category: {field.category}
116
+ </div>
117
+ </div>
118
+ );
119
+ };
120
+
121
+ export default MetaPage;
122
+ `;
6
123
  };
7
124
  exports.uiMetaPageTmpl = uiMetaPageTmpl;
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWV0YVBhZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvcHJvamVjdHNHZW5lcmF0aW9uL2dlbmVyYXRvcnMvZmlsZVRlbXBsYXRlcy91aS9NZXRhUGFnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBTyxJQUFNLGNBQWMsR0FBRztJQUM1QixPQUFPLCs1RkFxSFIsQ0FBQTtBQUNELENBQUMsQ0FBQTtBQXZIWSxRQUFBLGNBQWMsa0JBdUgxQiJ9
125
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWV0YVBhZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvcHJvamVjdHNHZW5lcmF0aW9uL2dlbmVyYXRvcnMvZmlsZVRlbXBsYXRlcy91aS9NZXRhUGFnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBTyxNQUFNLGNBQWMsR0FBRyxHQUFHLEVBQUU7SUFDakMsT0FBTzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0NBcUhSLENBQUE7QUFDRCxDQUFDLENBQUE7QUF2SFksUUFBQSxjQUFjLGtCQXVIMUIifQ==
@@ -1,16 +1,51 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uiResourcesPageTmpl = void 0;
4
- var cases_1 = require("../../../../utils/cases");
5
- var utils_1 = require("../../../utils");
6
- var pluralize_1 = require("pluralize");
7
- var uiResourcesPageTmpl = function (_a) {
8
- var entities = _a.entities, options = _a.options;
9
- return "import React, {\n FC,\n} from 'react';\nimport NumberWidget from '../widgets/NumberWidget';\nimport {\n gql,\n} from '@apollo/client';\nimport {Title, useTranslate} from 'react-admin';\nimport Grid from '@mui/material/Grid';\n".concat(options.skipWarningThisIsGenerated
4
+ const cases_1 = require("../../../../utils/cases");
5
+ const utils_1 = require("../../../utils");
6
+ const pluralize_1 = require("pluralize");
7
+ const uiResourcesPageTmpl = ({ entities, options, }) => {
8
+ return `import React, {
9
+ FC,
10
+ } from 'react';
11
+ import NumberWidget from '../widgets/NumberWidget';
12
+ import {
13
+ gql,
14
+ } from '@apollo/client';
15
+ import {Title, useTranslate} from 'react-admin';
16
+ import Grid from '@mui/material/Grid';
17
+ ${options.skipWarningThisIsGenerated
10
18
  ? ''
11
- : "\n// ".concat(utils_1.generatedWarning, "\n"), "\nconst ResourcesPage: FC = () => {\n const translate = useTranslate();\n\n return (\n <Grid container>\n <Title title='app.resources' />\n").concat(entities.map(function (entity) {
12
- return " <NumberWidget\n request={gql`\n query {\n _all".concat((0, cases_1.pascalPlural)(entity.name), "Meta {\n count\n }\n }\n `}\n resultToValue={result => result?._all").concat((0, cases_1.pascalPlural)(entity.name), "Meta?.count}\n title={translate('").concat((0, pluralize_1.plural)(entity.type), ".").concat(entity.name, ".title.plural')}\n to='/").concat(entity.name, "'\n />");
13
- }).join("\n"), "\n </Grid>\n );\n};\n\nexport default ResourcesPage;\n");
19
+ : `
20
+ // ${utils_1.generatedWarning}
21
+ `}
22
+ const ResourcesPage: FC = () => {
23
+ const translate = useTranslate();
24
+
25
+ return (
26
+ <Grid container>
27
+ <Title title='app.resources' />
28
+ ${entities.map((entity) => {
29
+ return ` <NumberWidget
30
+ request={gql\`
31
+ query {
32
+ _all${(0, cases_1.pascalPlural)(entity.name)}Meta {
33
+ count
34
+ }
35
+ }
36
+ \`}
37
+ resultToValue={result => result?._all${(0, cases_1.pascalPlural)(entity.name)}Meta?.count}
38
+ title={translate('${(0, pluralize_1.plural)(entity.type)}.${entity.name}.title.plural')}
39
+ to='/${entity.name}'
40
+ />`;
41
+ }).join(`
42
+ `)}
43
+ </Grid>
44
+ );
45
+ };
46
+
47
+ export default ResourcesPage;
48
+ `;
14
49
  };
15
50
  exports.uiResourcesPageTmpl = uiResourcesPageTmpl;
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVzb3VyY2VzUGFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9wcm9qZWN0c0dlbmVyYXRpb24vZ2VuZXJhdG9ycy9maWxlVGVtcGxhdGVzL3VpL1Jlc291cmNlc1BhZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsaURBQXNEO0FBRXRELHdDQUFpRDtBQUNqRCx1Q0FBa0M7QUFFM0IsSUFBTSxtQkFBbUIsR0FBRyxVQUFDLEVBR1I7UUFGMUIsUUFBUSxjQUFBLEVBQ1IsT0FBTyxhQUFBO0lBRVAsT0FBTyw4T0FVUCxPQUFPLENBQUMsMEJBQTBCO1FBQ2hDLENBQUMsQ0FBQyxFQUFFO1FBQ0osQ0FBQyxDQUFDLGVBQ0Qsd0JBQWdCLE9BQ3BCLGtLQVFDLFFBQVEsQ0FBQyxHQUFHLENBQUMsVUFBQyxNQUFNO1FBQ3BCLE9BQU8seUZBR1MsSUFBQSxvQkFBWSxFQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsK0hBS0ksSUFBQSxvQkFBWS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UFBLGtCQUFNLEVBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLE1BQU0sQ0FBQyxJQUFJO2VBQy9DLE1BQU0sQ0FBQyxJQUFJO1NBQ2pCLENBQUE7SUFDVCxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUM7Q0FDUCxDQUFDOzs7Ozs7Q0FNRCxDQUFBO0FBQ0QsQ0FBQyxDQUFBO0FBakRZLFFBQUEsbUJBQW1CLHVCQWlEL0IifQ==
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uiAdditionalRoutesTmpl = void 0;
4
- var uiAdditionalRoutesTmpl = function () { return "const additionalRoutes = [];\n\nexport default additionalRoutes;\n"; };
4
+ const uiAdditionalRoutesTmpl = () => `const additionalRoutes = [];
5
+
6
+ export default additionalRoutes;
7
+ `;
5
8
  exports.uiAdditionalRoutesTmpl = uiAdditionalRoutesTmpl;
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkaXRpb25hbFJvdXRlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9wcm9qZWN0c0dlbmVyYXRpb24vZ2VuZXJhdG9ycy9maWxlVGVtcGxhdGVzL3VpL2FkZGl0aW9uYWxSb3V0ZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQU8sSUFBTSxzQkFBc0IsR0FBRyxjQUFNLE9BQUEsb0VBRzNDLEVBSDJDLENBRzNDLENBQUE7QUFIWSxRQUFBLHNCQUFzQiwwQkFHbEMifQ==
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkaXRpb25hbFJvdXRlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9wcm9qZWN0c0dlbmVyYXRpb24vZ2VuZXJhdG9ycy9maWxlVGVtcGxhdGVzL3VpL2FkZGl0aW9uYWxSb3V0ZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQU8sTUFBTSxzQkFBc0IsR0FBRyxHQUFHLEVBQUUsQ0FBQzs7O0NBRzNDLENBQUE7QUFIWSxRQUFBLHNCQUFzQiwwQkFHbEMifQ==
@@ -1,16 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uiEntityMappingTmpl = void 0;
4
- var types_1 = require("../../../types");
5
- var cases_1 = require("../../../../utils/cases");
6
- var utils_1 = require("../../../utils");
7
- var uiEntityMappingTmpl = function (_a, options) {
8
- var entities = _a.entities;
9
- if (options === void 0) { options = types_1.defaultBootstrapEntityOptions; }
10
- return "".concat(options.skipWarningThisIsGenerated
11
- ? ''
12
- : "// ".concat(utils_1.generatedWarning, "\n\n"), "export const mapping = {\n ").concat(entities.map(function (m) { return "".concat((0, cases_1.camelPlural)(m.name), ": '").concat((0, cases_1.pascalSingular)(m.name), "',"); })
13
- .join("\n ")).concat(options.projectPrefix === 'rlw' ? "\n elasticMailingMessages: 'ElasticMailingMessage'," : '', "\n};\n");
14
- };
4
+ const types_1 = require("../../../types");
5
+ const cases_1 = require("../../../../utils/cases");
6
+ const utils_1 = require("../../../utils");
7
+ const uiEntityMappingTmpl = ({ entities }, options = types_1.defaultBootstrapEntityOptions) => `${options.skipWarningThisIsGenerated
8
+ ? ''
9
+ : `// ${utils_1.generatedWarning}
10
+
11
+ `}export const mapping = {
12
+ ${entities.map((m) => `${(0, cases_1.camelPlural)(m.name)}: '${(0, cases_1.pascalSingular)(m.name)}',`)
13
+ .join(`
14
+ `)}${options.projectPrefix === 'rlw' ? `\n elasticMailingMessages: 'ElasticMailingMessage',` : ''}
15
+ };
16
+ `;
15
17
  exports.uiEntityMappingTmpl = uiEntityMappingTmpl;
16
- //# sourceMappingURL=data:application/json;base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bIi4uLy4uLy4uLy4uLy4uL3NyYy9wcm9qZWN0c0dlbmVyYXRpb24vZ2VuZXJhdG9ycy9maWxlVGVtcGxhdGVzL3VpL2VudGl0eU1hcHBpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMENBR3VCO0FBQ3ZCLG1EQUFxRTtBQUNyRSwwQ0FBaUQ7QUFHMUMsTUFBTSxtQkFBbUIsR0FBRyxDQUNqQyxFQUFFLFFBQVEsRUFBNkIsRUFDdkMsVUFBa0MscUNBQTZCLEVBQy9ELEVBQUUsQ0FBQyxHQUNILE9BQU8sQ0FBQywwQkFBMEI7SUFDaEMsQ0FBQyxDQUFDLEVBQUU7SUFDSixDQUFDLENBQUMsTUFBTSx3QkFBZ0I7O0NBRzVCO0lBQ0ksUUFBUSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsR0FBRyxJQUFBLG1CQUFXLEVBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxNQUFNLElBQUEsc0JBQWMsRUFBQyxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztLQUMxRSxJQUFJLENBQUM7R0FDUCxDQUFDLEdBQUcsT0FBTyxDQUFDLGFBQWEsS0FBSyxLQUFLLENBQUMsQ0FBQyxDQUFDLHNEQUFzRCxDQUFBLENBQUMsQ0FBQyxFQUFFOztDQUVsRyxDQUFBO0FBZFksUUFBQSxtQkFBbUIsdUJBYy9CIn0=
@@ -1,12 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uiChartTmpl = void 0;
4
- var utils_1 = require("../../../../../utils");
5
- var uiChartTmpl = function (_a) {
6
- var prefix = _a.system.prefix, options = _a.options;
7
- return "".concat(options.skipWarningThisIsGenerated
8
- ? ''
9
- : "\n# ".concat(utils_1.generatedWarning, "\n"), "apiVersion: v1\nappVersion: \"1.0\"\ndescription: A Helm chart for Kubernetes\nname: ").concat(options.k8sChartName || prefix, "-ui\nversion: 0.0.1\n");
10
- };
4
+ const utils_1 = require("../../../../../utils");
5
+ const uiChartTmpl = ({ system: { prefix }, options, }) => `${options.skipWarningThisIsGenerated
6
+ ? ''
7
+ : `
8
+ # ${utils_1.generatedWarning}
9
+ `}apiVersion: v1
10
+ appVersion: "1.0"
11
+ description: A Helm chart for Kubernetes
12
+ name: ${options.k8sChartName || prefix}-ui
13
+ version: 0.0.1
14
+ `;
11
15
  exports.uiChartTmpl = uiChartTmpl;
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2hhcnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvcHJvamVjdHNHZW5lcmF0aW9uL2dlbmVyYXRvcnMvZmlsZVRlbXBsYXRlcy91aS9lbnZpcm9ubWVudC9jaGFydC9DaGFydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSw4Q0FBdUQ7QUFFaEQsSUFBTSxXQUFXLEdBQUcsVUFBQyxFQUdBO1FBRmhCLE1BQU0sbUJBQUEsRUFDaEIsT0FBTyxhQUFBO0lBQ3dCLE9BQUEsVUFDL0IsT0FBTyxDQUFDLDBCQUEwQjtRQUNoQyxDQUFDLENBQUMsRUFBRTtRQUNKLENBQUMsQ0FBQyxjQUNGLHdCQUFnQixPQUNuQixrR0FJTyxPQUFPLENBQUMsWUFBWSxJQUFJLE1BQU0sMEJBRXJDO0FBWGdDLENBV2hDLENBQUE7QUFkWSxRQUFBLFdBQVcsZUFjdkIifQ==
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2hhcnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvcHJvamVjdHNHZW5lcmF0aW9uL2dlbmVyYXRvcnMvZmlsZVRlbXBsYXRlcy91aS9lbnZpcm9ubWVudC9jaGFydC9DaGFydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxnREFBdUQ7QUFFaEQsTUFBTSxXQUFXLEdBQUcsQ0FBQyxFQUMxQixNQUFNLEVBQUUsRUFBRSxNQUFNLEVBQUUsRUFDbEIsT0FBTyxHQUNtQixFQUFFLEVBQUUsQ0FBQyxHQUMvQixPQUFPLENBQUMsMEJBQTBCO0lBQ2hDLENBQUMsQ0FBQyxFQUFFO0lBQ0osQ0FBQyxDQUFDO0lBQ0Ysd0JBQWdCO0NBRXBCOzs7UUFHUSxPQUFPLENBQUMsWUFBWSxJQUFJLE1BQU07O0NBRXJDLENBQUE7QUFkWSxRQUFBLFdBQVcsZUFjdkIifQ==
@@ -1,17 +1,122 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uiChartFrontTmpl = void 0;
4
- /* eslint-disable max-len */
5
- var change_case_1 = require("change-case");
6
- var utils_1 = require("../../../../../../utils");
7
- var uiChartFrontTmpl = function (_a) {
8
- var system = _a.system, prefix = _a.system.prefix, options = _a.options;
9
- return "".concat(options.skipWarningThisIsGenerated
10
- ? ''
11
- : "\n# ".concat(utils_1.generatedWarning, "\n"), "apiVersion: v1\nkind: Service\nmetadata:\n name: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}\n labels:\n app: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}\n projectName: {{ $.Values.global.projectName }}\n clusterName: {{ $.Values.global.clusterName }}\n env: {{ $.Values.global.env }}\n deployKind: {{ $.Values.global.deployKind }}\nspec:\n ports:\n - name: http\n port: 80\n protocol: TCP\n targetPort: 80\n selector:\n app: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}\n---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}\nspec:\n replicas: {{ $.Values.app.replicas }}\n strategy:\n type: RollingUpdate\n rollingUpdate:\n maxSurge: 3\n selector:\n matchLabels:\n app: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}\n template:\n metadata:\n labels:\n app: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}\n projectName: {{ $.Values.global.projectName }}\n clusterName: {{ $.Values.global.clusterName }}\n env: {{ $.Values.global.env }}\n deployKind: {{ $.Values.global.deployKind }}\n spec:\n imagePullSecrets:\n - name: {{ $.Release.Name }}-pullsecret\n volumes:\n - name: cache-volume\n emptyDir: {}\n containers:\n - name: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}\n image: {{ $.Values.dockerRegistry.domain }}/{{ $.Values.global.projectGroup }}/{{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}{{ $.Values.app.tag }}\n volumeMounts:\n - mountPath: /cache\n name: cache-volume\n ports:\n - name: main-port\n containerPort: 80\n imagePullPolicy: Always\n livenessProbe:\n httpGet:\n path: /\n port: main-port\n initialDelaySeconds: 60\n timeoutSeconds: 15\n periodSeconds: 5\n readinessProbe:\n httpGet:\n path: /\n port: main-port\n initialDelaySeconds: 60\n timeoutSeconds: 15\n periodSeconds: 5\n startupProbe:\n httpGet:\n path: /\n port: main-port\n initialDelaySeconds: 60\n timeoutSeconds: 15\n failureThreshold: 10\n periodSeconds: 10\n resources:\n requests:\n memory: \"256Mi\"\n cpu: \"0.15\"\n limits:\n memory: \"512Mi\"\n cpu: \"1\"\n env:\n - name: NODE_ENV\n value: production\n - name: RANDOM\n value: {{ $.Values.random | quote }}\n - name: ENV\n value: '{{ $.Values.global.env }}'").concat(system.configVars
12
- .filter(function (v) { return v.scopes.includes('admin-app'); })
13
- .map(function (v) { return "\n - name: ".concat((0, change_case_1.constantCase)(v.name), "\n value: {{ $.Values.").concat(v.name, " | quote }}"); })
14
- .join(''), "\n\n - name: K8S_NODE_NAME\n valueFrom:\n fieldRef:\n fieldPath: spec.nodeName\n - name: K8S_POD_NAME\n valueFrom:\n fieldRef:\n fieldPath: metadata.name\n - name: K8S_POD_NAMESPACE\n valueFrom:\n fieldRef:\n fieldPath: metadata.namespace\n---\n");
15
- };
4
+ const change_case_1 = require("change-case");
5
+ const utils_1 = require("../../../../../../utils");
6
+ const uiChartFrontTmpl = ({ system, options, }) => `${options.skipWarningThisIsGenerated
7
+ ? ''
8
+ : `
9
+ # ${utils_1.generatedWarning}
10
+ `}apiVersion: v1
11
+ kind: Service
12
+ metadata:
13
+ name: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}
14
+ labels:
15
+ app: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}
16
+ projectName: {{ $.Values.global.projectName }}
17
+ clusterName: {{ $.Values.global.clusterName }}
18
+ env: {{ $.Values.global.env }}
19
+ deployKind: {{ $.Values.global.deployKind }}
20
+ spec:
21
+ ports:
22
+ - name: http
23
+ port: 80
24
+ protocol: TCP
25
+ targetPort: 80
26
+ selector:
27
+ app: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}
28
+ ---
29
+ apiVersion: apps/v1
30
+ kind: Deployment
31
+ metadata:
32
+ name: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}
33
+ spec:
34
+ replicas: {{ $.Values.app.replicas }}
35
+ strategy:
36
+ type: RollingUpdate
37
+ rollingUpdate:
38
+ maxSurge: 3
39
+ selector:
40
+ matchLabels:
41
+ app: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}
42
+ template:
43
+ metadata:
44
+ labels:
45
+ app: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}
46
+ projectName: {{ $.Values.global.projectName }}
47
+ clusterName: {{ $.Values.global.clusterName }}
48
+ env: {{ $.Values.global.env }}
49
+ deployKind: {{ $.Values.global.deployKind }}
50
+ spec:
51
+ imagePullSecrets:
52
+ - name: {{ $.Release.Name }}-pullsecret
53
+ volumes:
54
+ - name: cache-volume
55
+ emptyDir: {}
56
+ containers:
57
+ - name: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}
58
+ image: {{ $.Values.dockerRegistry.domain }}/{{ $.Values.global.projectGroup }}/{{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}{{ $.Values.app.tag }}
59
+ volumeMounts:
60
+ - mountPath: /cache
61
+ name: cache-volume
62
+ ports:
63
+ - name: main-port
64
+ containerPort: 80
65
+ imagePullPolicy: Always
66
+ livenessProbe:
67
+ httpGet:
68
+ path: /
69
+ port: main-port
70
+ initialDelaySeconds: 60
71
+ timeoutSeconds: 15
72
+ periodSeconds: 5
73
+ readinessProbe:
74
+ httpGet:
75
+ path: /
76
+ port: main-port
77
+ initialDelaySeconds: 60
78
+ timeoutSeconds: 15
79
+ periodSeconds: 5
80
+ startupProbe:
81
+ httpGet:
82
+ path: /
83
+ port: main-port
84
+ initialDelaySeconds: 60
85
+ timeoutSeconds: 15
86
+ failureThreshold: 10
87
+ periodSeconds: 10
88
+ resources:
89
+ requests:
90
+ memory: "256Mi"
91
+ cpu: "0.15"
92
+ limits:
93
+ memory: "512Mi"
94
+ cpu: "1"
95
+ env:
96
+ - name: NODE_ENV
97
+ value: production
98
+ - name: RANDOM
99
+ value: {{ $.Values.random | quote }}
100
+ - name: ENV
101
+ value: '{{ $.Values.global.env }}'${system.configVars
102
+ .filter((v) => v.scopes.includes('admin-app'))
103
+ .map((v) => `\n - name: ${(0, change_case_1.constantCase)(v.name)}
104
+ value: {{ $.Values.${v.name} | quote }}`)
105
+ .join('')}
106
+
107
+ - name: K8S_NODE_NAME
108
+ valueFrom:
109
+ fieldRef:
110
+ fieldPath: spec.nodeName
111
+ - name: K8S_POD_NAME
112
+ valueFrom:
113
+ fieldRef:
114
+ fieldPath: metadata.name
115
+ - name: K8S_POD_NAMESPACE
116
+ valueFrom:
117
+ fieldRef:
118
+ fieldPath: metadata.namespace
119
+ ---
120
+ `;
16
121
  exports.uiChartFrontTmpl = uiChartFrontTmpl;
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozL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exports, "__esModule", { value: true });
3
3
  exports.uiChartIngressTmpl = void 0;
4
- var utils_1 = require("../../../../../../utils");
5
- var uiChartIngressTmpl = function (_a) {
6
- var prefix = _a.system.prefix, options = _a.options;
7
- return "".concat(options.skipWarningThisIsGenerated
8
- ? ''
9
- : "\n# ".concat(utils_1.generatedWarning, "\n"), "apiVersion: networking.k8s.io/v1\nkind: Ingress\nmetadata:\n name: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}\n labels:\n app: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}\n chart: \"{{ .Chart.Name }}-{{ .Chart.Version | replace \"+\" \"_\" }}\"\n release: \"{{ .Release.Name }}\"\n heritage: \"{{ .Release.Service }}\"\n annotations:\n {{- range $key, $value := .Values.ingress.annotations }}\n {{ $key }}: {{ $value | quote }}\n {{- end }}\n {{ if .Values.ingress.letsencryptCert }}\n cert-manager.io/cluster-issuer: \"letsencrypt-prod\"\n {{ end }}\nspec:\n rules:\n {{ if .Values.ingress.rootEnabled }}\n - host: {{ $.Values.ingress.domains.app }}.apps.{{ $.Values.ingress.host }}\n http:\n paths:\n - pathType: Prefix\n path: \"/\"\n backend:\n service:\n name: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}\n port:\n number: 80\n {{ end }}\n - host: {{ $.Values.ingress.domains.app }}.{{ $.Values.global.env }}.apps.{{ $.Values.global.clusterName }}.{{ $.Values.ingress.host }}\n http:\n paths:\n - pathType: Prefix\n path: \"/\"\n backend:\n service:\n name: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}\n port:\n number: 80\n tls:\n - hosts:\n - {{ $.Values.ingress.domains.app }}.{{ $.Values.global.env }}.apps.{{ $.Values.global.clusterName }}.{{ $.Values.ingress.host }}\n secretName: {{ $.Values.ingress.domains.app }}.{{ $.Values.global.env }}.apps.{{ $.Values.global.clusterName }}.{{ $.Values.ingress.host }}-tls\n");
10
- };
4
+ const utils_1 = require("../../../../../../utils");
5
+ const uiChartIngressTmpl = ({ options, }) => `${options.skipWarningThisIsGenerated
6
+ ? ''
7
+ : `
8
+ # ${utils_1.generatedWarning}
9
+ `}apiVersion: networking.k8s.io/v1
10
+ kind: Ingress
11
+ metadata:
12
+ name: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}
13
+ labels:
14
+ app: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}
15
+ chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
16
+ release: "{{ .Release.Name }}"
17
+ heritage: "{{ .Release.Service }}"
18
+ annotations:
19
+ {{- range $key, $value := .Values.ingress.annotations }}
20
+ {{ $key }}: {{ $value | quote }}
21
+ {{- end }}
22
+ {{ if .Values.ingress.letsencryptCert }}
23
+ cert-manager.io/cluster-issuer: "letsencrypt-prod"
24
+ {{ end }}
25
+ spec:
26
+ rules:
27
+ {{ if .Values.ingress.rootEnabled }}
28
+ - host: {{ $.Values.ingress.domains.app }}.apps.{{ $.Values.ingress.host }}
29
+ http:
30
+ paths:
31
+ - pathType: Prefix
32
+ path: "/"
33
+ backend:
34
+ service:
35
+ name: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}
36
+ port:
37
+ number: 80
38
+ {{ end }}
39
+ - host: {{ $.Values.ingress.domains.app }}.{{ $.Values.global.env }}.apps.{{ $.Values.global.clusterName }}.{{ $.Values.ingress.host }}
40
+ http:
41
+ paths:
42
+ - pathType: Prefix
43
+ path: "/"
44
+ backend:
45
+ service:
46
+ name: {{ $.Values.global.projectName }}-{{ $.Values.global.deployKind }}
47
+ port:
48
+ number: 80
49
+ tls:
50
+ - hosts:
51
+ - {{ $.Values.ingress.domains.app }}.{{ $.Values.global.env }}.apps.{{ $.Values.global.clusterName }}.{{ $.Values.ingress.host }}
52
+ secretName: {{ $.Values.ingress.domains.app }}.{{ $.Values.global.env }}.apps.{{ $.Values.global.clusterName }}.{{ $.Values.ingress.host }}-tls
53
+ `;
11
54
  exports.uiChartIngressTmpl = uiChartIngressTmpl;
12
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BQ0osQ0FBQyxDQUFDO0lBQ0Ysd0JBQWdCO0NBRXBCOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztDQTRDQyxDQUFBO0FBcERZLFFBQUEsa0JBQWtCLHNCQW9EOUIifQ==
@@ -1,12 +1,83 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uiChartValuesTmpl = void 0;
4
- var utils_1 = require("../../../../../utils");
5
- var uiChartValuesTmpl = function (_a) {
6
- var prefix = _a.system.prefix, options = _a.options;
7
- return "".concat(options.skipWarningThisIsGenerated
8
- ? ''
9
- : "\n# ".concat(utils_1.generatedWarning, "\n"), "\nglobal:\n env: noName\n clusterName: noName\n projectName: ").concat(options.k8sChartName || prefix, "\n projectGroup: ").concat(options.projectsGroup, "\n deployKind: noName\n imagePullPolicy: Always\n\ndev: false\n\ndocker:\n registry: ").concat(options.ciDockerRegistry, "\n\napp:\n tag: :master\n replicas: 1\n\nimage:\n repository: nginx\n tag: stable\n pullPolicy: IfNotPresent\n\nimagePullSecrets:\n - name: ").concat(options.k8sImagePullSecrets, "\n\nnameOverride: \"\"\nfullnameOverride: \"\"\n\nservice:\n type: ClusterIP\n port: \"80\"\n\ndeployment:\n annotations:\n prometheus.io/path: '/metrics'\n prometheus.io/scrape: true\n prometheus.io/port: 2100\n\ningress:\n annotations:\n nginx.ingress.kubernetes.io/limit-connections: \"100\"\n nginx.ingress.kubernetes.io/limit-rps: \"300\"\n nginx.ingress.kubernetes.io/limit-rpm: \"5000\"\n nginx.ingress.kubernetes.io/affinity: \"cookie\"\n nginx.ingress.kubernetes.io/proxy-body-size: \"").concat(options.ingressAnnotationBodySize, "\"\n nginx.ingress.kubernetes.io/proxy-read-timeout: \"7200\"\n nginx.ingress.kubernetes.io/proxy-send-timeout: \"7200\"\n host: \"").concat(options.k8sAppsDomain, "\"\n letsencryptCert: true\n domains:\n app: \"").concat(options.k8sSubdomainPrefix || prefix, "\"\n endpoint: \"").concat(options.k8sSubdomainPrefix || prefix, "-ep\"\n\nresources:\n {}\n # We usually recommend not to specify default resources and to leave this as a conscious\n # choice for the user. This also increases chances charts run on environments with little\n # resources, such as Minikube. If you do want to specify resources, uncomment the following\n # lines, adjust them as necessary, and remove the curly braces after 'resources:'.\n # limits:\n # cpu: 100m\n # memory: 128Mi\n # requests:\n # cpu: 100m\n # memory: 128Mi\n\nnodeSelector: {}\n\ntolerations: []\n\naffinity: {}\n");
10
- };
4
+ const utils_1 = require("../../../../../utils");
5
+ const uiChartValuesTmpl = ({ system: { prefix }, options, }) => `${options.skipWarningThisIsGenerated
6
+ ? ''
7
+ : `
8
+ # ${utils_1.generatedWarning}
9
+ `}
10
+ global:
11
+ env: noName
12
+ clusterName: noName
13
+ projectName: ${options.k8sChartName || prefix}
14
+ projectGroup: ${options.projectsGroup}
15
+ deployKind: noName
16
+ imagePullPolicy: Always
17
+
18
+ dev: false
19
+
20
+ docker:
21
+ registry: ${options.ciDockerRegistry}
22
+
23
+ app:
24
+ tag: :master
25
+ replicas: 1
26
+
27
+ image:
28
+ repository: nginx
29
+ tag: stable
30
+ pullPolicy: IfNotPresent
31
+
32
+ imagePullSecrets:
33
+ - name: ${options.k8sImagePullSecrets}
34
+
35
+ nameOverride: ""
36
+ fullnameOverride: ""
37
+
38
+ service:
39
+ type: ClusterIP
40
+ port: "80"
41
+
42
+ deployment:
43
+ annotations:
44
+ prometheus.io/path: '/metrics'
45
+ prometheus.io/scrape: true
46
+ prometheus.io/port: 2100
47
+
48
+ ingress:
49
+ annotations:
50
+ nginx.ingress.kubernetes.io/limit-connections: "100"
51
+ nginx.ingress.kubernetes.io/limit-rps: "300"
52
+ nginx.ingress.kubernetes.io/limit-rpm: "5000"
53
+ nginx.ingress.kubernetes.io/affinity: "cookie"
54
+ nginx.ingress.kubernetes.io/proxy-body-size: "${options.ingressAnnotationBodySize}"
55
+ nginx.ingress.kubernetes.io/proxy-read-timeout: "7200"
56
+ nginx.ingress.kubernetes.io/proxy-send-timeout: "7200"
57
+ host: "${options.k8sAppsDomain}"
58
+ letsencryptCert: true
59
+ domains:
60
+ app: "${options.k8sSubdomainPrefix || prefix}"
61
+ endpoint: "${options.k8sSubdomainPrefix || prefix}-ep"
62
+
63
+ resources:
64
+ {}
65
+ # We usually recommend not to specify default resources and to leave this as a conscious
66
+ # choice for the user. This also increases chances charts run on environments with little
67
+ # resources, such as Minikube. If you do want to specify resources, uncomment the following
68
+ # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
69
+ # limits:
70
+ # cpu: 100m
71
+ # memory: 128Mi
72
+ # requests:
73
+ # cpu: 100m
74
+ # memory: 128Mi
75
+
76
+ nodeSelector: {}
77
+
78
+ tolerations: []
79
+
80
+ affinity: {}
81
+ `;
11
82
  exports.uiChartValuesTmpl = uiChartValuesTmpl;
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL3Byb2plY3RzR2VuZXJhdGlvbi9nZW5lcmF0b3JzL2ZpbGVUZW1wbGF0ZXMvdWkvZW52aXJvbm1lbnQvY2hhcnQvdmFsdWVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDhDQUF1RDtBQUVoRCxJQUFNLGlCQUFpQixHQUFHLFVBQUMsRUFHTjtRQUZoQixNQUFNLG1CQUFBLEVBQ2hCLE9BQU8sYUFBQTtJQUN3QixPQUFBLFVBQy9CLE9BQU8sQ0FBQywwQkFBMEI7UUFDaEMsQ0FBQyxDQUFDLEVBQUU7UUFDSixDQUFDLENBQUMsY0FDRix3QkFBZ0IsT0FDbkIsNkVBS2dCLE9BQU8sQ0FBQyxZQUFZLElBQUksTUFBTSwrQkFDN0IsT0FBTyxDQUFDLGFBQWEscUdBT3pCLE9BQU8sQ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QWE7OztZQUdwQixPQUFPLENBQUMsa0JBQWtCLElBQUksTUFBTTtpQkFDL0IsT0FBTyxDQUFDLGtCQUFrQixJQUFJLE1BQU07Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0NBb0JwRCxDQUFBO0FBakZZLFFBQUEsaUJBQWlCLHFCQWlGN0IifQ==
@@ -1,12 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uiCiNotifyTmpl = void 0;
4
- var utils_1 = require("../../../../utils");
5
- var uiCiNotifyTmpl = function (_a) {
6
- var options = _a.options;
7
- return "#!/bin/bash\n".concat(options.skipWarningThisIsGenerated
8
- ? ''
9
- : "\n# ".concat(utils_1.generatedWarning, "\n "), "\nTIME=\"10\"\nTELEGRAM_URL=\"https://api.telegram.org/bot$NOTIFY_TELEGRAM_BOT_TOKEN/sendMessage\"\nDISCORD_URL=\"$NOTIFY_DISCORD_WEBHOOK_URL\"\nTG_TEXT=\"Status: $1%0A%0AProject: $CI_PROJECT_NAME%0AURL: $CI_PROJECT_URL/pipelines/$CI_PIPELINE_ID/%0ABranch: $CI_COMMIT_REF_SLUG\"\nDISCORD_TEXT=\"Status: **$1**\\nProject: **$CI_PROJECT_NAME**\\nURL: $CI_PROJECT_URL/pipelines/$CI_PIPELINE_ID/\\nBranch: $CI_COMMIT_REF_SLUG\\n\\n\"\n\n# Telegram notification\ncurl -s --max-time $TIME -d \"chat_id=$NOTIFY_TELEGRAM_CHAT_ID&disable_web_page_preview=1&text=$TG_TEXT\" $TELEGRAM_URL > /dev/null\n\n# Discord notification\ncurl -s --max-time $TIME -H \"Content-Type: application/json\" -d \"{\\\"content\\\":\\\"$DISCORD_TEXT\\\",\\\"allowed_mentions\\\":{\\\"parse\\\":[]}}\" $DISCORD_URL > /dev/null");
10
- };
4
+ const utils_1 = require("../../../../utils");
5
+ const uiCiNotifyTmpl = ({ options }) => `#!/bin/bash
6
+ ${options.skipWarningThisIsGenerated
7
+ ? ''
8
+ : `
9
+ # ${utils_1.generatedWarning}
10
+ `}
11
+ TIME="10"
12
+ TELEGRAM_URL="https://api.telegram.org/bot$NOTIFY_TELEGRAM_BOT_TOKEN/sendMessage"
13
+ DISCORD_URL="$NOTIFY_DISCORD_WEBHOOK_URL"
14
+ TG_TEXT="Status: $1%0A%0AProject: $CI_PROJECT_NAME%0AURL: $CI_PROJECT_URL/pipelines/$CI_PIPELINE_ID/%0ABranch: $CI_COMMIT_REF_SLUG"
15
+ DISCORD_TEXT="Status: **$1**\\nProject: **$CI_PROJECT_NAME**\\nURL: $CI_PROJECT_URL/pipelines/$CI_PIPELINE_ID/\\nBranch: $CI_COMMIT_REF_SLUG\\n\\n"
16
+
17
+ # Telegram notification
18
+ curl -s --max-time $TIME -d "chat_id=$NOTIFY_TELEGRAM_CHAT_ID&disable_web_page_preview=1&text=$TG_TEXT" $TELEGRAM_URL > /dev/null
19
+
20
+ # Discord notification
21
+ curl -s --max-time $TIME -H "Content-Type: application/json" -d "{\\"content\\":\\"$DISCORD_TEXT\\",\\"allowed_mentions\\":{\\"parse\\":[]}}" $DISCORD_URL > /dev/null`;
11
22
  exports.uiCiNotifyTmpl = uiCiNotifyTmpl;
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2lOb3RpZnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvcHJvamVjdHNHZW5lcmF0aW9uL2dlbmVyYXRvcnMvZmlsZVRlbXBsYXRlcy91aS9lbnZpcm9ubWVudC9jaU5vdGlmeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFQSwyQ0FBb0Q7QUFFN0MsSUFBTSxjQUFjLEdBQUcsVUFBQyxFQUVIO1FBRDFCLE9BQU8sYUFBQTtJQUN3QixPQUFBLHVCQUU3QixPQUFPLENBQUMsMEJBQTBCO1FBQ2hDLENBQUMsQ0FBQyxF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