runlify 0.0.701 → 0.0.702

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 (35) hide show
  1. package/build/projectsGeneration/args.js +1 -1
  2. package/build/projectsGeneration/builders/TelegramBotBuilder.js +3 -33
  3. package/build/projectsGeneration/genGraphSchemesByLocalGenerator.js +1 -1
  4. package/build/projectsGeneration/generateProject.js +4 -11
  5. package/build/projectsGeneration/generators/fileTemplates/back/environment/chart/values.js +5 -2
  6. package/build/projectsGeneration/generators/fileTemplates/back/environment/gitlabCi.js +13 -4
  7. package/build/projectsGeneration/generators/fileTemplates/ui/ResourcesPage.js +3 -2
  8. package/build/projectsGeneration/generators/fileTemplates/ui/environment/gitlabCi.js +4 -1
  9. package/build/projectsGeneration/generators/fileTemplates/ui/getDefaultMenu.js +3 -2
  10. package/build/projectsGeneration/generators/fileTemplates/ui/widgets/list/ListWidget.js +3 -3
  11. package/build/projectsGeneration/types.js +3 -1
  12. package/build/types/projectsGeneration/args.d.ts +3 -3
  13. package/build/types/projectsGeneration/builders/TelegramBotBuilder.d.ts +1 -7
  14. package/build/types/projectsGeneration/builders/buildedTypes.d.ts +1 -1
  15. package/build/types/projectsGeneration/genGraphSchemesByLocalGenerator.d.ts +2 -2
  16. package/build/types/projectsGeneration/generateProject.d.ts +2 -81
  17. package/build/types/projectsGeneration/generators/fileTemplates/back/elastic/jobs.d.ts +4 -0
  18. package/build/types/projectsGeneration/types.d.ts +2 -4
  19. package/package.json +1 -1
  20. package/build/projectsGeneration/fileCleaners/back/cleanBack.js +0 -50
  21. package/build/projectsGeneration/fileCleaners/back/graphServices/cleanGraphServices.js +0 -73
  22. package/build/projectsGeneration/fileCleaners/back/services/cleanServices.js +0 -81
  23. package/build/projectsGeneration/fileCleaners/cleanFiles.js +0 -52
  24. package/build/projectsGeneration/fileCleaners/ui/cleanUi.js +0 -53
  25. package/build/projectsGeneration/fileCleaners/ui/pages/cleanPages.js +0 -73
  26. package/build/projectsGeneration/fileCleaners/ui/widgets/cleanWidgets.js +0 -54
  27. package/build/projectsGeneration/fileCleaners/ui/widgets/cleanWidgetsByType.js +0 -75
  28. package/build/types/projectsGeneration/fileCleaners/back/cleanBack.d.ts +0 -3
  29. package/build/types/projectsGeneration/fileCleaners/back/graphServices/cleanGraphServices.d.ts +0 -3
  30. package/build/types/projectsGeneration/fileCleaners/back/services/cleanServices.d.ts +0 -3
  31. package/build/types/projectsGeneration/fileCleaners/cleanFiles.d.ts +0 -3
  32. package/build/types/projectsGeneration/fileCleaners/ui/cleanUi.d.ts +0 -3
  33. package/build/types/projectsGeneration/fileCleaners/ui/pages/cleanPages.d.ts +0 -3
  34. package/build/types/projectsGeneration/fileCleaners/ui/widgets/cleanWidgets.d.ts +0 -3
  35. package/build/types/projectsGeneration/fileCleaners/ui/widgets/cleanWidgetsByType.d.ts +0 -3
@@ -1,75 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- var path_1 = require("path");
40
- var fs_1 = require("fs");
41
- var change_case_1 = require("change-case");
42
- var patternByType = {
43
- count: '(?<=^Count)(.*)(?=Widget\.tsx)',
44
- list: '(?<=^List)(.*)(?=Widget\.tsx)'
45
- };
46
- var cleanWidgetsByType = function (widgetsDirPath, entities, type, widgetGenOn) { return __awaiter(void 0, void 0, void 0, function () {
47
- var listWidgetsDirPath, listWidgetsDirContent, listWidgetFilenameRegex;
48
- return __generator(this, function (_a) {
49
- listWidgetsDirPath = (0, path_1.join)(widgetsDirPath, type);
50
- listWidgetsDirContent = (0, fs_1.readdirSync)(listWidgetsDirPath);
51
- listWidgetFilenameRegex = new RegExp(patternByType[type], 'gum');
52
- return [2 /*return*/, Promise.all(listWidgetsDirContent.map(function (name) { return __awaiter(void 0, void 0, void 0, function () {
53
- var fullPath, statData, entityNameMatches, entityName, entity;
54
- return __generator(this, function (_a) {
55
- fullPath = (0, path_1.join)(listWidgetsDirPath, name);
56
- statData = (0, fs_1.statSync)(fullPath);
57
- if (statData.isDirectory()) {
58
- return [2 /*return*/];
59
- }
60
- entityNameMatches = name.match(listWidgetFilenameRegex);
61
- if (!entityNameMatches) {
62
- return [2 /*return*/];
63
- }
64
- entityName = (0, change_case_1.camelCase)(entityNameMatches[0]);
65
- entity = entities.find(function (entity) { return entity.name === entityName; });
66
- if (!entity || !widgetGenOn) {
67
- (0, fs_1.unlinkSync)(fullPath);
68
- }
69
- return [2 /*return*/, new Promise(function (resolve) { return resolve(null); })];
70
- });
71
- }); }))];
72
- });
73
- }); };
74
- exports.default = cleanWidgetsByType;
75
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xlYW5XaWRnZXRzQnlUeXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3Byb2plY3RzR2VuZXJhdGlvbi9maWxlQ2xlYW5lcnMvdWkvd2lkZ2V0cy9jbGVhbldpZGdldHNCeVR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSw2QkFBNEI7QUFFNUIseUJBQXVEO0FBQ3ZELDJDQUF3QztBQUV4QyxJQUFNLGFBQWEsR0FBRztJQUNwQixLQUFLLEVBQUUsZ0NBQWdDO0lBQ3ZDLElBQUksRUFBRSwrQkFBK0I7Q0FDdEMsQ0FBQTtBQUVELElBQU0sa0JBQWtCLEdBQUcsVUFDekIsY0FBc0IsRUFDdEIsUUFBa0IsRUFDbEIsSUFBc0IsRUFDdEIsV0FBb0I7OztRQUVkLGtCQUFrQixHQUFHLElBQUEsV0FBSSxFQUFDLGNBQWMsRUFBRSxJQUFJLENB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QUFDLEVBQWIsQ0FBYSxDQUFDLEVBQUM7O2lCQUNoRCxDQUFDLENBQUMsRUFBQTs7S0FDSixDQUFBO0FBRUQsa0JBQWUsa0JBQWtCLENBQUMifQ==
@@ -1,3 +0,0 @@
1
- import { ProjectWideGenerationArgs } from "../../args";
2
- declare const _default: (_entityWideGenerationArgs: ProjectWideGenerationArgs) => Promise<[]>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { ProjectWideGenerationArgs } from "../../../args";
2
- declare const _default: (entityWideGenerationArgs: ProjectWideGenerationArgs) => Promise<unknown[]>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { ProjectWideGenerationArgs } from "../../../args";
2
- declare const _default: (entityWideGenerationArgs: ProjectWideGenerationArgs) => Promise<unknown[]>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { ProjectWideGenerationArgs } from "../args";
2
- declare const _default: (entityWideGenerationArgs: ProjectWideGenerationArgs) => Promise<[[[unknown[], unknown[]]], []]>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { ProjectWideGenerationArgs } from "../../args";
2
- declare const _default: (entityWideGenerationArgs: ProjectWideGenerationArgs) => Promise<[[unknown[], unknown[]]]>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { ProjectWideGenerationArgs } from "../../../args";
2
- declare const _default: (entityWideGenerationArgs: ProjectWideGenerationArgs) => Promise<unknown[]>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { ProjectWideGenerationArgs } from "../../../args";
2
- declare const _default: (entityWideGenerationArgs: ProjectWideGenerationArgs) => Promise<[unknown[], unknown[]]>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { Entity } from "../../../builders";
2
- declare const cleanWidgetsByType: (widgetsDirPath: string, entities: Entity[], type: 'count' | 'list', widgetGenOn: boolean) => Promise<unknown[]>;
3
- export default cleanWidgetsByType;