runlify 0.0.782 → 0.0.786
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.
- package/build/index.js +4 -2
- package/build/projectsGeneration/builders/BaseSavableEntityBuilder.js +17 -13
- package/build/projectsGeneration/builders/SystemMetaBuilder.js +27 -3
- package/build/projectsGeneration/builders/buildedTypes.js +1 -1
- package/build/projectsGeneration/builders/storage.js +60 -0
- package/build/projectsGeneration/commonEntities/addCommonCommands.js +22 -4
- package/build/projectsGeneration/defaultCatalogs/{addElasticSearch.js → addExternalSearch.js} +5 -5
- package/build/projectsGeneration/defaultCatalogs/index.js +2 -2
- package/build/projectsGeneration/generateProject/back/generateBack.js +3 -1
- package/build/projectsGeneration/generateProject/back/src/services/generateBackEntityService.js +2 -2
- package/build/projectsGeneration/generateProject/generateBackClickHouseBootstrap.js +16 -0
- package/build/projectsGeneration/generateProject/generateBackElasticBootstrap.js +3 -2
- package/build/projectsGeneration/generateProject/generateEnvironment.js +33 -16
- package/build/projectsGeneration/generators/fileTemplates/back/clickhouse/jobs.js +94 -0
- package/build/projectsGeneration/generators/fileTemplates/back/elastic/jobs.js +15 -3
- package/build/projectsGeneration/generators/fileTemplates/back/environment/src/clients/createPgPrismaClient.js +43 -0
- package/build/projectsGeneration/generators/fileTemplates/back/environment/src/clients/getPrisma.js +139 -20
- package/build/projectsGeneration/generators/fileTemplates/back/environment/src/init/prisma/writeClientPackageStubs.js +39 -0
- package/build/projectsGeneration/generators/fileTemplates/back/services/entity/class.js +31 -20
- package/build/projectsGeneration/generators/fileTemplates/back/services/entity/config.js +9 -2
- package/build/projectsGeneration/generators/prisma/scheme/genPrismaConfig.js +34 -0
- package/build/projectsGeneration/generators/prisma/scheme/genPrismaConfig.spec.js +28 -0
- package/build/projectsGeneration/generators/prisma/scheme/genPrismaSchemaForEntitiesWithClientAdnDb.js +29 -12
- package/build/projectsGeneration/generators/prisma/scheme/genPrismaSchemaForEntitiesWithClientAdnDb.spec.js +99 -0
- package/build/projectsGeneration/utils/buildPrismaCommands.js +80 -0
- package/build/projectsGeneration/utils/buildPrismaCommands.spec.js +58 -0
- package/build/projectsGeneration/utils/detectPrismaMajorVersion.js +62 -0
- package/build/projectsGeneration/utils/detectPrismaMajorVersion.spec.js +51 -0
- package/build/types/index.d.ts +1 -0
- package/build/types/projectsGeneration/builders/BaseSavableEntityBuilder.d.ts +4 -4
- package/build/types/projectsGeneration/builders/SystemMetaBuilder.d.ts +4 -1
- package/build/types/projectsGeneration/builders/buildedTypes.d.ts +2 -2
- package/build/types/projectsGeneration/builders/storage.d.ts +21 -0
- package/build/types/projectsGeneration/defaultCatalogs/addExternalSearch.d.ts +2 -0
- package/build/types/projectsGeneration/defaultCatalogs/index.d.ts +1 -1
- package/build/types/projectsGeneration/generateProject/generateBackClickHouseBootstrap.d.ts +3 -0
- package/build/types/projectsGeneration/generators/fileTemplates/back/clickhouse/jobs.d.ts +183 -0
- package/build/types/projectsGeneration/generators/fileTemplates/back/environment/src/clients/createPgPrismaClient.d.ts +1 -0
- package/build/types/projectsGeneration/generators/fileTemplates/back/environment/src/clients/getPrisma.d.ts +1 -1
- package/build/types/projectsGeneration/generators/fileTemplates/back/environment/src/init/prisma/writeClientPackageStubs.d.ts +2 -0
- package/build/types/projectsGeneration/generators/fileTemplates/back/services/entity/class.d.ts +1 -1
- package/build/types/projectsGeneration/generators/prisma/scheme/genPrismaConfig.d.ts +13 -0
- package/build/types/projectsGeneration/generators/prisma/scheme/genPrismaConfig.spec.d.ts +1 -0
- package/build/types/projectsGeneration/generators/prisma/scheme/genPrismaSchemaForEntitiesWithClientAdnDb.d.ts +3 -1
- package/build/types/projectsGeneration/generators/prisma/scheme/genPrismaSchemaForEntitiesWithClientAdnDb.spec.d.ts +1 -0
- package/build/types/projectsGeneration/utils/buildPrismaCommands.d.ts +11 -0
- package/build/types/projectsGeneration/utils/buildPrismaCommands.spec.d.ts +1 -0
- package/build/types/projectsGeneration/utils/detectPrismaMajorVersion.d.ts +2 -0
- package/build/types/projectsGeneration/utils/detectPrismaMajorVersion.spec.d.ts +1 -0
- package/package.json +9 -1
- package/build/types/projectsGeneration/defaultCatalogs/addElasticSearch.d.ts +0 -2
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { Entity } from '../../../../builders';
|
|
2
|
+
export declare const genClickHouseJobsDataTmpl: (entities: Entity[], _options?: {
|
|
3
|
+
genPrismaServices: boolean;
|
|
4
|
+
genGraphSchema: boolean;
|
|
5
|
+
genGraphResolvers: boolean;
|
|
6
|
+
genUiResources: boolean;
|
|
7
|
+
skipWarningThisIsGenerated: boolean;
|
|
8
|
+
genPrismaSchema: boolean;
|
|
9
|
+
genContext: boolean;
|
|
10
|
+
typesOnly: boolean;
|
|
11
|
+
genRootConfig: boolean;
|
|
12
|
+
genRootElements: boolean;
|
|
13
|
+
genUiCountWidget: boolean;
|
|
14
|
+
genUiListWidget: boolean;
|
|
15
|
+
genUiAppBar: boolean;
|
|
16
|
+
genUiEntityMapping: boolean;
|
|
17
|
+
genUiMenu: boolean;
|
|
18
|
+
genUiElements: boolean;
|
|
19
|
+
genUiResourcesPage: boolean;
|
|
20
|
+
genUiRoutes: boolean;
|
|
21
|
+
genUIApp: boolean;
|
|
22
|
+
genUiFunctions: boolean;
|
|
23
|
+
genUiDashboard: boolean;
|
|
24
|
+
showMetaPage: boolean;
|
|
25
|
+
readOnly: boolean;
|
|
26
|
+
forms: {
|
|
27
|
+
list: {
|
|
28
|
+
gen: boolean;
|
|
29
|
+
};
|
|
30
|
+
show: {
|
|
31
|
+
gen: boolean;
|
|
32
|
+
};
|
|
33
|
+
edit: {
|
|
34
|
+
gen: boolean;
|
|
35
|
+
idEditable: boolean;
|
|
36
|
+
};
|
|
37
|
+
create: {
|
|
38
|
+
gen: boolean;
|
|
39
|
+
idEditable: boolean;
|
|
40
|
+
};
|
|
41
|
+
menu: {
|
|
42
|
+
show: boolean;
|
|
43
|
+
};
|
|
44
|
+
resourcesPage: {
|
|
45
|
+
show: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
projectsGroup: string;
|
|
49
|
+
projectPrefix: string;
|
|
50
|
+
dbName: string;
|
|
51
|
+
projectName: string;
|
|
52
|
+
k8sChartName: string;
|
|
53
|
+
k8sNamespacePrefix: string;
|
|
54
|
+
k8sAppsDomain: string;
|
|
55
|
+
k8sSubdomainPrefix: string;
|
|
56
|
+
k8sImagePullSecrets: string;
|
|
57
|
+
ciDockerRegistry: string;
|
|
58
|
+
telemetry: boolean;
|
|
59
|
+
useSortedFilter: boolean;
|
|
60
|
+
genBackGitlabCi: boolean;
|
|
61
|
+
genUiGitlabCi: boolean;
|
|
62
|
+
genBackCiNotify: boolean;
|
|
63
|
+
genUiCiNotify: boolean;
|
|
64
|
+
adminBaseDockerimage: string;
|
|
65
|
+
backendBaseDockerimage: string;
|
|
66
|
+
genBackChartValues: boolean;
|
|
67
|
+
genBackChartIngress: boolean;
|
|
68
|
+
genBackChartBack: boolean;
|
|
69
|
+
genUiChartIngress: boolean;
|
|
70
|
+
genUiChartFront: boolean;
|
|
71
|
+
ingressAnnotationBodySize: string;
|
|
72
|
+
mountebankEnabled: boolean;
|
|
73
|
+
exportHtmlEnabled: boolean;
|
|
74
|
+
corePrismaGetter: boolean;
|
|
75
|
+
coreIndex: boolean;
|
|
76
|
+
usersEnabled: boolean;
|
|
77
|
+
tenantsAvailable: boolean;
|
|
78
|
+
themesEnabled: boolean;
|
|
79
|
+
mainColorOfAppTitile: boolean;
|
|
80
|
+
sharding: boolean;
|
|
81
|
+
breadcrumb: boolean;
|
|
82
|
+
showFunctionsInMenu: boolean;
|
|
83
|
+
showResourcesInMenu: boolean;
|
|
84
|
+
showMetaInMenu: boolean;
|
|
85
|
+
genFrontend: boolean;
|
|
86
|
+
genDockerfileBack: boolean;
|
|
87
|
+
genDockerfileUI: boolean;
|
|
88
|
+
auditableOnlyByUser: boolean;
|
|
89
|
+
graphGeneratorCommand: string;
|
|
90
|
+
detachedBackProject: string;
|
|
91
|
+
detachedUiProject: string;
|
|
92
|
+
}) => string;
|
|
93
|
+
export declare const genClickHouseJobsTmpl: (entities: Entity[], options?: {
|
|
94
|
+
genPrismaServices: boolean;
|
|
95
|
+
genGraphSchema: boolean;
|
|
96
|
+
genGraphResolvers: boolean;
|
|
97
|
+
genUiResources: boolean;
|
|
98
|
+
skipWarningThisIsGenerated: boolean;
|
|
99
|
+
genPrismaSchema: boolean;
|
|
100
|
+
genContext: boolean;
|
|
101
|
+
typesOnly: boolean;
|
|
102
|
+
genRootConfig: boolean;
|
|
103
|
+
genRootElements: boolean;
|
|
104
|
+
genUiCountWidget: boolean;
|
|
105
|
+
genUiListWidget: boolean;
|
|
106
|
+
genUiAppBar: boolean;
|
|
107
|
+
genUiEntityMapping: boolean;
|
|
108
|
+
genUiMenu: boolean;
|
|
109
|
+
genUiElements: boolean;
|
|
110
|
+
genUiResourcesPage: boolean;
|
|
111
|
+
genUiRoutes: boolean;
|
|
112
|
+
genUIApp: boolean;
|
|
113
|
+
genUiFunctions: boolean;
|
|
114
|
+
genUiDashboard: boolean;
|
|
115
|
+
showMetaPage: boolean;
|
|
116
|
+
readOnly: boolean;
|
|
117
|
+
forms: {
|
|
118
|
+
list: {
|
|
119
|
+
gen: boolean;
|
|
120
|
+
};
|
|
121
|
+
show: {
|
|
122
|
+
gen: boolean;
|
|
123
|
+
};
|
|
124
|
+
edit: {
|
|
125
|
+
gen: boolean;
|
|
126
|
+
idEditable: boolean;
|
|
127
|
+
};
|
|
128
|
+
create: {
|
|
129
|
+
gen: boolean;
|
|
130
|
+
idEditable: boolean;
|
|
131
|
+
};
|
|
132
|
+
menu: {
|
|
133
|
+
show: boolean;
|
|
134
|
+
};
|
|
135
|
+
resourcesPage: {
|
|
136
|
+
show: boolean;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
projectsGroup: string;
|
|
140
|
+
projectPrefix: string;
|
|
141
|
+
dbName: string;
|
|
142
|
+
projectName: string;
|
|
143
|
+
k8sChartName: string;
|
|
144
|
+
k8sNamespacePrefix: string;
|
|
145
|
+
k8sAppsDomain: string;
|
|
146
|
+
k8sSubdomainPrefix: string;
|
|
147
|
+
k8sImagePullSecrets: string;
|
|
148
|
+
ciDockerRegistry: string;
|
|
149
|
+
telemetry: boolean;
|
|
150
|
+
useSortedFilter: boolean;
|
|
151
|
+
genBackGitlabCi: boolean;
|
|
152
|
+
genUiGitlabCi: boolean;
|
|
153
|
+
genBackCiNotify: boolean;
|
|
154
|
+
genUiCiNotify: boolean;
|
|
155
|
+
adminBaseDockerimage: string;
|
|
156
|
+
backendBaseDockerimage: string;
|
|
157
|
+
genBackChartValues: boolean;
|
|
158
|
+
genBackChartIngress: boolean;
|
|
159
|
+
genBackChartBack: boolean;
|
|
160
|
+
genUiChartIngress: boolean;
|
|
161
|
+
genUiChartFront: boolean;
|
|
162
|
+
ingressAnnotationBodySize: string;
|
|
163
|
+
mountebankEnabled: boolean;
|
|
164
|
+
exportHtmlEnabled: boolean;
|
|
165
|
+
corePrismaGetter: boolean;
|
|
166
|
+
coreIndex: boolean;
|
|
167
|
+
usersEnabled: boolean;
|
|
168
|
+
tenantsAvailable: boolean;
|
|
169
|
+
themesEnabled: boolean;
|
|
170
|
+
mainColorOfAppTitile: boolean;
|
|
171
|
+
sharding: boolean;
|
|
172
|
+
breadcrumb: boolean;
|
|
173
|
+
showFunctionsInMenu: boolean;
|
|
174
|
+
showResourcesInMenu: boolean;
|
|
175
|
+
showMetaInMenu: boolean;
|
|
176
|
+
genFrontend: boolean;
|
|
177
|
+
genDockerfileBack: boolean;
|
|
178
|
+
genDockerfileUI: boolean;
|
|
179
|
+
auditableOnlyByUser: boolean;
|
|
180
|
+
graphGeneratorCommand: string;
|
|
181
|
+
detachedBackProject: string;
|
|
182
|
+
detachedUiProject: string;
|
|
183
|
+
}) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createPgPrismaClientTmpl: () => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ProjectWideGenerationArgs } from '../../../../../../args';
|
|
2
|
-
export declare const prismaGetterTmpl: (args: ProjectWideGenerationArgs) => string;
|
|
2
|
+
export declare const prismaGetterTmpl: (args: ProjectWideGenerationArgs, prismaMajor?: number) => string;
|
package/build/types/projectsGeneration/generators/fileTemplates/back/services/entity/class.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EntityWideGenerationArgs } from '../../../../../args';
|
|
2
|
-
export declare const prismaServiceBaseClassTmpl: ({ entity, }: EntityWideGenerationArgs) => string;
|
|
2
|
+
export declare const prismaServiceBaseClassTmpl: ({ entity, options, }: EntityWideGenerationArgs) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type GenPrismaConfigOptions = {
|
|
2
|
+
schema: string;
|
|
3
|
+
database: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const genPrismaConfig: ({ schema, database }: GenPrismaConfigOptions) => string;
|
|
6
|
+
export declare const genMainPrismaConfig: () => string;
|
|
7
|
+
export declare const genMainDeployPrismaConfig: () => string;
|
|
8
|
+
export declare const genExtraDbPrismaConfig: (database: string) => string;
|
|
9
|
+
export declare const genExtraDbDeployPrismaConfig: (database: string) => string;
|
|
10
|
+
export declare const genShardsPrismaConfig: () => string;
|
|
11
|
+
export declare const genShardsDeployPrismaConfig: () => string;
|
|
12
|
+
/** Used in tests to assert env var naming for extra DBs. */
|
|
13
|
+
export declare const extraDbMigrationEnvVar: (database: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -7,7 +7,9 @@ export type GenPrismaSchemaDbOptions = {
|
|
|
7
7
|
* For `database !== 'main'`, callers must pass `false` (sharding ignored).
|
|
8
8
|
*/
|
|
9
9
|
forShards: boolean;
|
|
10
|
+
/** Prisma major version from package.json; >= 7 enables P7 schema format. */
|
|
11
|
+
prismaMajor?: number;
|
|
10
12
|
};
|
|
11
13
|
export declare const genPrismaSchemaForEntitiesWithClientAdnDb: (args: ProjectWideGenerationArgs, opts: GenPrismaSchemaDbOptions) => string;
|
|
12
14
|
/** Minimal deploy schema (migrate URL only). */
|
|
13
|
-
export declare const genDeployConnectionPrisma: (database: string) => string;
|
|
15
|
+
export declare const genDeployConnectionPrisma: (database: string, prismaMajor?: number) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type BuildPrismaCommandsOptions = {
|
|
2
|
+
databaseNames: string[];
|
|
3
|
+
sharding: boolean;
|
|
4
|
+
prismaMajor: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const buildPrismaGenCommand: ({ databaseNames, sharding, prismaMajor, }: BuildPrismaCommandsOptions) => string;
|
|
7
|
+
export declare const buildShardsGenCommand: ({ sharding, prismaMajor, }: BuildPrismaCommandsOptions) => string | null;
|
|
8
|
+
export declare const buildPrismaNewMigrationCommand: ({ databaseNames, prismaMajor, }: BuildPrismaCommandsOptions) => string;
|
|
9
|
+
export declare const buildShardsNewMigrationCommand: ({ sharding, prismaMajor, }: BuildPrismaCommandsOptions) => string | null;
|
|
10
|
+
export declare const buildPrismaDeployCommand: ({ databaseNames, prismaMajor, }: BuildPrismaCommandsOptions) => string;
|
|
11
|
+
export declare const buildMigrationsListCommand: ({ prismaMajor }: BuildPrismaCommandsOptions) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "runlify",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.786",
|
|
4
4
|
"description": "runlify CLI",
|
|
5
5
|
"private": false,
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/making-ventures/runlify.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/making-ventures/runlify#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/making-ventures/runlify/issues"
|
|
13
|
+
},
|
|
6
14
|
"main": "build/index.js",
|
|
7
15
|
"types": "build/types/types.d.ts",
|
|
8
16
|
"bin": {
|