@simitgroup/simpleapp-generator 1.6.6-d-alpha → 1.6.6-f-alpha
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/ReleaseNote.md +6 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
- package/templates/basic/nest/processor.ts.eta +5 -6
- package/templates/basic/nuxt/simpleapp.generate.client.ts.eta +3 -3
- package/templates/nest/src/simpleapp/generate/processors/autoinc.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/branch.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/docno.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/org.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/perm.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/sysmsg.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/tenant.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/webhook.processor.ts.eta +3 -4
- package/templates/nuxt/nuxt.config.ts._eta +161 -141
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/buildinschemas/autoincreament.d.ts +0 -3
- package/dist/buildinschemas/branch.d.ts +0 -3
- package/dist/buildinschemas/changehistories.d.ts +0 -3
- package/dist/buildinschemas/docnoformat.d.ts +0 -3
- package/dist/buildinschemas/documentevent.d.ts +0 -3
- package/dist/buildinschemas/index.d.ts +0 -11
- package/dist/buildinschemas/keyvaluepair.d.ts +0 -3
- package/dist/buildinschemas/message.d.ts +0 -3
- package/dist/buildinschemas/message.d.ts.map +0 -1
- package/dist/buildinschemas/message.js +0 -34
- package/dist/buildinschemas/message.js.map +0 -1
- package/dist/buildinschemas/organization.d.ts +0 -3
- package/dist/buildinschemas/permission.d.ts +0 -3
- package/dist/buildinschemas/systemmessage.d.ts +0 -3
- package/dist/buildinschemas/tenant.d.ts +0 -3
- package/dist/buildinschemas/user.d.ts +0 -3
- package/dist/buildinschemas/webhook.d.ts +0 -3
- package/dist/buildinschemas/webhookhistory.d.ts +0 -3
- package/dist/buildinschemas/webhookhistory.d.ts.map +0 -1
- package/dist/buildinschemas/webhookhistory.js +0 -44
- package/dist/buildinschemas/webhookhistory.js.map +0 -1
- package/dist/constant.d.ts +0 -4
- package/dist/createproject.js +0 -138
- package/dist/createproject.js.map +0 -1
- package/dist/framework.d.ts +0 -10
- package/dist/generate-allow-changebackend.js +0 -305
- package/dist/generate-allow-changebackend.js.map +0 -1
- package/dist/generate.d.ts +0 -2
- package/dist/index.d.ts +0 -3
- package/dist/index2.js +0 -118
- package/dist/index2.js.map +0 -1
- package/dist/installdependency.js +0 -20
- package/dist/installdependency.js.map +0 -1
- package/dist/installnest.js +0 -2
- package/dist/installnest.js.map +0 -1
- package/dist/installnuxt.js +0 -2
- package/dist/installnuxt.js.map +0 -1
- package/dist/libs.d.ts +0 -2
- package/dist/processors/bpmnbuilder.d.ts +0 -2
- package/dist/processors/groupsbuilder.js +0 -2
- package/dist/processors/groupsbuilder.js.map +0 -1
- package/dist/processors/jrxmlbuilder.d.ts +0 -3
- package/dist/processors/jsonschemabuilder.d.ts +0 -4
- package/dist/resource/camunda-moodle.d.ts +0 -27
- package/dist/schematype/baseschema.js +0 -25
- package/dist/schematype/baseschema.js.map +0 -1
- package/dist/schematype/default.js +0 -2
- package/dist/schematype/default.js.map +0 -1
- package/dist/schematype/index.js +0 -12
- package/dist/schematype/index.js.map +0 -1
- package/dist/schematype/primarymasterdata.js +0 -38
- package/dist/schematype/primarymasterdata.js.map +0 -1
- package/dist/schematype/simple.js +0 -24
- package/dist/schematype/simple.js.map +0 -1
- package/dist/schematype/simplemasterdata.js +0 -31
- package/dist/schematype/simplemasterdata.js.map +0 -1
- package/dist/schematype/transaction.js +0 -74
- package/dist/schematype/transaction.js.map +0 -1
- package/dist/storage.d.ts +0 -4
- package/dist/type.d.ts +0 -256
- package/dist/validation.d.ts +0 -1
package/dist/type.d.ts
DELETED
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { JSONSchema7Type, JSONSchema7Version, JSONSchema7TypeName, JSONSchema7Definition } from 'json-schema';
|
|
2
|
-
export type ChildModels = {
|
|
3
|
-
[key: string]: {
|
|
4
|
-
type: string;
|
|
5
|
-
model: SchemaModel;
|
|
6
|
-
codeField: string;
|
|
7
|
-
nameField: string;
|
|
8
|
-
moreAutoComplete?: string[];
|
|
9
|
-
docStatusSettings?: DocumentStatus[];
|
|
10
|
-
apiSettings?: DocumentApi[];
|
|
11
|
-
isolationtype: string;
|
|
12
|
-
hasdocformat: boolean;
|
|
13
|
-
foreignkeys: MyForeignKey;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export declare enum Fieldtypes {
|
|
17
|
-
'string' = "string",
|
|
18
|
-
'object' = "object",
|
|
19
|
-
'array' = "array",
|
|
20
|
-
'boolean' = "boolean",
|
|
21
|
-
'integer' = "integer",
|
|
22
|
-
'number' = "number"
|
|
23
|
-
}
|
|
24
|
-
export type FieldModel = {
|
|
25
|
-
title?: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
default?: any;
|
|
28
|
-
type: Fieldtypes;
|
|
29
|
-
format?: string;
|
|
30
|
-
required?: boolean;
|
|
31
|
-
example?: any;
|
|
32
|
-
examples?: any;
|
|
33
|
-
};
|
|
34
|
-
export type SchemaModel = {
|
|
35
|
-
[key: string]: string | string[] | FieldModel | SchemaModel | SchemaModel[];
|
|
36
|
-
};
|
|
37
|
-
export type JsonSchemaProperties = {
|
|
38
|
-
[key: string]: JSONSchema7Definition;
|
|
39
|
-
};
|
|
40
|
-
export type MyForeignKey = {
|
|
41
|
-
[collectionname: string]: string[];
|
|
42
|
-
};
|
|
43
|
-
export type TypeForeignKeyCatalogue = {
|
|
44
|
-
[cataloguename: string]: TypeForeignKey;
|
|
45
|
-
};
|
|
46
|
-
export type TypeForeignKey = {
|
|
47
|
-
[collection: string]: string[];
|
|
48
|
-
};
|
|
49
|
-
export type ModuleObject = {
|
|
50
|
-
doctype: string;
|
|
51
|
-
docname: string;
|
|
52
|
-
pagetype: string;
|
|
53
|
-
api: DocumentApi[];
|
|
54
|
-
schema: SimpleAppJSONSchema7;
|
|
55
|
-
};
|
|
56
|
-
export type TypeGenerateDocumentVariable = {
|
|
57
|
-
name: string;
|
|
58
|
-
doctype: string;
|
|
59
|
-
models: ChildModels;
|
|
60
|
-
autocompletecode: string;
|
|
61
|
-
autocompletename: string;
|
|
62
|
-
moreAutoComplete: string[];
|
|
63
|
-
schema: SchemaModel;
|
|
64
|
-
apiSchemaName: string;
|
|
65
|
-
typename: string;
|
|
66
|
-
fullApiSchemaName: string;
|
|
67
|
-
fullTypeName: string;
|
|
68
|
-
jsonschema: SimpleAppJSONSchema7;
|
|
69
|
-
bothEndCode: string;
|
|
70
|
-
frontEndCode: string;
|
|
71
|
-
backEndCode: string;
|
|
72
|
-
controllerCode: string;
|
|
73
|
-
apiSchemaCode: string;
|
|
74
|
-
docStatusSettings: DocumentStatus[];
|
|
75
|
-
apiSettings: DocumentApi[];
|
|
76
|
-
isolationtype: string;
|
|
77
|
-
hasdocformat: boolean;
|
|
78
|
-
foreignkeys: MyForeignKey;
|
|
79
|
-
};
|
|
80
|
-
export type DocumentStatus = {
|
|
81
|
-
status: string;
|
|
82
|
-
statusName: string;
|
|
83
|
-
readOnly: boolean;
|
|
84
|
-
actions: string[];
|
|
85
|
-
};
|
|
86
|
-
export declare enum RESTMethods {
|
|
87
|
-
'post' = "post",
|
|
88
|
-
'get' = "get",
|
|
89
|
-
'delete' = "delete",
|
|
90
|
-
'put' = "put",
|
|
91
|
-
'patch' = "patch"
|
|
92
|
-
}
|
|
93
|
-
export type DocumentApi = {
|
|
94
|
-
action: string;
|
|
95
|
-
entryPoint: string;
|
|
96
|
-
queryPara?: string[];
|
|
97
|
-
requiredRole?: string[];
|
|
98
|
-
method: RESTMethods;
|
|
99
|
-
responseType?: string;
|
|
100
|
-
schema?: string;
|
|
101
|
-
description: string;
|
|
102
|
-
};
|
|
103
|
-
export declare enum IsolationType {
|
|
104
|
-
"none" = "none",
|
|
105
|
-
"tenant" = "tenant",
|
|
106
|
-
"org" = "org",
|
|
107
|
-
"branch" = "branch"
|
|
108
|
-
}
|
|
109
|
-
export type Formula = {
|
|
110
|
-
jsonPath: string;
|
|
111
|
-
formula: string;
|
|
112
|
-
};
|
|
113
|
-
export type SchemaConfig = {
|
|
114
|
-
isolationType: IsolationType;
|
|
115
|
-
requiredRoles?: string[];
|
|
116
|
-
pageType?: string;
|
|
117
|
-
uniqueKey?: string;
|
|
118
|
-
uniqueKeys?: string[][];
|
|
119
|
-
documentTitle?: string;
|
|
120
|
-
loseDataIsolation?: boolean;
|
|
121
|
-
generateDocumentNumber?: boolean;
|
|
122
|
-
docNoPattern?: string;
|
|
123
|
-
documentDate?: string;
|
|
124
|
-
allStatus?: DocumentStatus[];
|
|
125
|
-
additionalApis?: DocumentApi[];
|
|
126
|
-
additionalAutoCompleteFields?: string[];
|
|
127
|
-
search?: string[];
|
|
128
|
-
formulas?: Formula[];
|
|
129
|
-
documentType: string;
|
|
130
|
-
documentName: string;
|
|
131
|
-
collectionName?: string;
|
|
132
|
-
foreignKeys?: MyForeignKey;
|
|
133
|
-
printFormats?: SchemaPrintFormat[];
|
|
134
|
-
};
|
|
135
|
-
export type SchemaPrintFormat = {
|
|
136
|
-
formatName: string;
|
|
137
|
-
formatId: string;
|
|
138
|
-
description?: string;
|
|
139
|
-
};
|
|
140
|
-
export type SchemaFields = {
|
|
141
|
-
_id: SimpleAppJSONSchema7;
|
|
142
|
-
tenantId: SimpleAppJSONSchema7;
|
|
143
|
-
orgId: SimpleAppJSONSchema7;
|
|
144
|
-
branchId: SimpleAppJSONSchema7;
|
|
145
|
-
created: SimpleAppJSONSchema7;
|
|
146
|
-
updated: SimpleAppJSONSchema7;
|
|
147
|
-
createdBy: SimpleAppJSONSchema7;
|
|
148
|
-
updatedBy: SimpleAppJSONSchema7;
|
|
149
|
-
[key: string]: SimpleAppJSONSchema7 | SimpleAppJSONSchema7[] | undefined;
|
|
150
|
-
};
|
|
151
|
-
export type SchemaType = {
|
|
152
|
-
type: string;
|
|
153
|
-
definitions?: SimpleAppJSONSchema7;
|
|
154
|
-
required?: string[];
|
|
155
|
-
"x-simpleapp-config": SchemaConfig;
|
|
156
|
-
properties: SchemaFields;
|
|
157
|
-
};
|
|
158
|
-
export type SimpleAppJSONSchema7Definition = SimpleAppJSONSchema7 | boolean;
|
|
159
|
-
export interface SimpleAppJSONSchema7 {
|
|
160
|
-
'x-foreignkey'?: string;
|
|
161
|
-
$id?: string | undefined;
|
|
162
|
-
$ref?: string | undefined;
|
|
163
|
-
$schema?: JSONSchema7Version | undefined;
|
|
164
|
-
$comment?: string | undefined;
|
|
165
|
-
/**
|
|
166
|
-
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
|
|
167
|
-
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
|
|
168
|
-
*/
|
|
169
|
-
$defs?: {
|
|
170
|
-
[key: string]: JSONSchema7Definition;
|
|
171
|
-
} | undefined;
|
|
172
|
-
/**
|
|
173
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
|
|
174
|
-
*/
|
|
175
|
-
type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined;
|
|
176
|
-
enum?: JSONSchema7Type[] | undefined;
|
|
177
|
-
const?: JSONSchema7Type | undefined;
|
|
178
|
-
/**
|
|
179
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2
|
|
180
|
-
*/
|
|
181
|
-
multipleOf?: number | undefined;
|
|
182
|
-
maximum?: number | undefined;
|
|
183
|
-
exclusiveMaximum?: number | undefined;
|
|
184
|
-
minimum?: number | undefined;
|
|
185
|
-
exclusiveMinimum?: number | undefined;
|
|
186
|
-
/**
|
|
187
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3
|
|
188
|
-
*/
|
|
189
|
-
maxLength?: number | undefined;
|
|
190
|
-
minLength?: number | undefined;
|
|
191
|
-
pattern?: string | undefined;
|
|
192
|
-
/**
|
|
193
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4
|
|
194
|
-
*/
|
|
195
|
-
items?: SimpleAppJSONSchema7Definition | SimpleAppJSONSchema7Definition[] | undefined;
|
|
196
|
-
additionalItems?: JSONSchema7Definition | undefined;
|
|
197
|
-
maxItems?: number | undefined;
|
|
198
|
-
minItems?: number | undefined;
|
|
199
|
-
uniqueItems?: boolean | undefined;
|
|
200
|
-
contains?: SimpleAppJSONSchema7Definition | undefined;
|
|
201
|
-
/**
|
|
202
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5
|
|
203
|
-
*/
|
|
204
|
-
maxProperties?: number | undefined;
|
|
205
|
-
minProperties?: number | undefined;
|
|
206
|
-
required?: string[] | undefined;
|
|
207
|
-
properties?: {
|
|
208
|
-
[key: string]: SimpleAppJSONSchema7Definition;
|
|
209
|
-
} | undefined;
|
|
210
|
-
patternProperties?: {
|
|
211
|
-
[key: string]: SimpleAppJSONSchema7Definition;
|
|
212
|
-
} | undefined;
|
|
213
|
-
additionalProperties?: SimpleAppJSONSchema7Definition | undefined;
|
|
214
|
-
dependencies?: {
|
|
215
|
-
[key: string]: SimpleAppJSONSchema7Definition | string[];
|
|
216
|
-
} | undefined;
|
|
217
|
-
propertyNames?: SimpleAppJSONSchema7Definition | undefined;
|
|
218
|
-
/**
|
|
219
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6
|
|
220
|
-
*/
|
|
221
|
-
if?: SimpleAppJSONSchema7Definition | undefined;
|
|
222
|
-
then?: SimpleAppJSONSchema7Definition | undefined;
|
|
223
|
-
else?: SimpleAppJSONSchema7Definition | undefined;
|
|
224
|
-
/**
|
|
225
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7
|
|
226
|
-
*/
|
|
227
|
-
allOf?: SimpleAppJSONSchema7Definition[] | undefined;
|
|
228
|
-
anyOf?: SimpleAppJSONSchema7Definition[] | undefined;
|
|
229
|
-
oneOf?: SimpleAppJSONSchema7Definition[] | undefined;
|
|
230
|
-
not?: SimpleAppJSONSchema7Definition | undefined;
|
|
231
|
-
/**
|
|
232
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7
|
|
233
|
-
*/
|
|
234
|
-
format?: string | undefined;
|
|
235
|
-
/**
|
|
236
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8
|
|
237
|
-
*/
|
|
238
|
-
contentMediaType?: string | undefined;
|
|
239
|
-
contentEncoding?: string | undefined;
|
|
240
|
-
/**
|
|
241
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9
|
|
242
|
-
*/
|
|
243
|
-
definitions?: {
|
|
244
|
-
[key: string]: JSONSchema7Definition;
|
|
245
|
-
} | undefined;
|
|
246
|
-
/**
|
|
247
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10
|
|
248
|
-
*/
|
|
249
|
-
title?: string | undefined;
|
|
250
|
-
description?: string | undefined;
|
|
251
|
-
default?: JSONSchema7Type | undefined;
|
|
252
|
-
readOnly?: boolean | undefined;
|
|
253
|
-
writeOnly?: boolean | undefined;
|
|
254
|
-
examples?: JSONSchema7Type | undefined;
|
|
255
|
-
}
|
|
256
|
-
//# sourceMappingURL=type.d.ts.map
|
package/dist/validation.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=validation.d.ts.map
|