@simitgroup/simpleapp-generator 1.6.6-d-alpha → 1.6.6-e-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 +3 -0
- package/dist/index.js +0 -0
- package/package.json +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
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.primarymasterdata = void 0;
|
|
4
|
-
const type_1 = require("../type");
|
|
5
|
-
exports.primarymasterdata = {
|
|
6
|
-
type: "object",
|
|
7
|
-
"x-simpleapp-config": {
|
|
8
|
-
isolationType: type_1.IsolationType.org,
|
|
9
|
-
pageType: "crud",
|
|
10
|
-
generateDocumentNumber: true,
|
|
11
|
-
schemaType: type_1.SupportedSchemaType.primarymasterdata,
|
|
12
|
-
documentType: '',
|
|
13
|
-
documentName: '',
|
|
14
|
-
},
|
|
15
|
-
properties: {
|
|
16
|
-
_id: { type: 'string', description: "system field" },
|
|
17
|
-
tenantId: { type: 'integer', default: 1, description: "system field" },
|
|
18
|
-
orgId: { type: 'integer', default: 1, description: "system field" },
|
|
19
|
-
branchId: { type: 'integer', default: 1, description: "system field" },
|
|
20
|
-
created: { type: 'string', description: "system field" },
|
|
21
|
-
updated: { type: 'string', description: "system field" },
|
|
22
|
-
createdby: { type: 'string', description: "system field" },
|
|
23
|
-
updatedby: { type: 'string', description: "system field" },
|
|
24
|
-
docNoFormat: {
|
|
25
|
-
type: "object",
|
|
26
|
-
"x-foreignkey": "docnoformat",
|
|
27
|
-
properties: { _id: { "type": "string" }, label: { "type": "string" } },
|
|
28
|
-
description: "system field"
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
definitions: {
|
|
32
|
-
foreignkey: {
|
|
33
|
-
type: "object",
|
|
34
|
-
properties: { _id: { "type": "string" }, label: { "type": "string" }, code: { "type": "string" } }
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=primarymasterdata.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primarymasterdata.js","sourceRoot":"","sources":["../../src/schematype/primarymasterdata.ts"],"names":[],"mappings":";;;AAAA,kCAAoE;AACvD,QAAA,iBAAiB,GAAc;IACxC,I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AE,QAAQ,EAAC,EAAC,KAAK,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAC,IAAI,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAC;SACzF;KACF;CACF,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.simpleschema = void 0;
|
|
4
|
-
exports.simpleschema = {
|
|
5
|
-
'type': 'object',
|
|
6
|
-
'x-simpleapp-config': {
|
|
7
|
-
isolationType: 'org',
|
|
8
|
-
schemaType: 'simple',
|
|
9
|
-
documentType: '',
|
|
10
|
-
documentName: '',
|
|
11
|
-
foreignKeys: {}
|
|
12
|
-
},
|
|
13
|
-
"properties": {
|
|
14
|
-
_id: { type: 'string' },
|
|
15
|
-
tenantId: { type: 'integer', default: 1 },
|
|
16
|
-
orgId: { type: 'integer', default: 1 },
|
|
17
|
-
branchId: { type: 'integer', default: 1 },
|
|
18
|
-
created: { type: 'string' },
|
|
19
|
-
updated: { type: 'string' },
|
|
20
|
-
createdby: { type: 'string' },
|
|
21
|
-
updatedby: { type: 'string' },
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=simple.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simple.js","sourceRoot":"","sources":["../../src/schematype/simple.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IACxB,MAAM,EAAC,QAAQ;IACf,oBAAoB,EAAC;QACnB,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,EAAE;QAChB,WAAW,EAAC,EAAE;KACf;IACD,YAAY,EAAC;QACT,GAAG,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC;QACnB,QAAQ,EAAC,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,CAAC,EAAC;QACnC,KAAK,EAAC,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,CAAC,EAAC;QAChC,QAAQ,EAAC,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,CAAC,EAAC;QACnC,OAAO,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC;QACvB,OAAO,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC;QACvB,SAAS,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC;QACzB,SAAS,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC;KAC5B;CACF,CAAA"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.simplemasterdata = void 0;
|
|
4
|
-
const type_1 = require("../type");
|
|
5
|
-
exports.simplemasterdata = {
|
|
6
|
-
type: "object",
|
|
7
|
-
"x-simpleapp-config": {
|
|
8
|
-
isolationType: type_1.IsolationType.org,
|
|
9
|
-
pageType: "crud",
|
|
10
|
-
schemaType: type_1.SupportedSchemaType.simplemasterdata,
|
|
11
|
-
documentType: '',
|
|
12
|
-
documentName: '',
|
|
13
|
-
},
|
|
14
|
-
properties: {
|
|
15
|
-
_id: { type: 'string' },
|
|
16
|
-
tenantId: { type: 'integer', default: 1, description: "system field" },
|
|
17
|
-
orgId: { type: 'integer', default: 1, description: "system field" },
|
|
18
|
-
branchId: { type: 'integer', default: 1, description: "system field" },
|
|
19
|
-
created: { type: 'string', description: "system field" },
|
|
20
|
-
updated: { type: 'string', description: "system field" },
|
|
21
|
-
createdby: { type: 'string', description: "system field" },
|
|
22
|
-
updatedby: { type: 'string', description: "system field" },
|
|
23
|
-
},
|
|
24
|
-
definitions: {
|
|
25
|
-
foreignkey: {
|
|
26
|
-
type: "object",
|
|
27
|
-
properties: { _id: { "type": "string" }, label: { "type": "string" }, code: { "type": "string" } }
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
//#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EAAC,MAAM,EAAE,QAAQ,EAAC,EAAC;SACzF;KACF;CACF,CAAA"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.transaction = void 0;
|
|
4
|
-
const type_1 = require("../type");
|
|
5
|
-
exports.transaction = {
|
|
6
|
-
type: "object",
|
|
7
|
-
"x-simpleapp-config": {
|
|
8
|
-
isolationType: type_1.IsolationType.org,
|
|
9
|
-
requiredRoles: [],
|
|
10
|
-
documentType: '',
|
|
11
|
-
documentName: '',
|
|
12
|
-
pageType: "crud",
|
|
13
|
-
uniqueKey: "documentNo",
|
|
14
|
-
documentTitle: "documentTitle",
|
|
15
|
-
generateDocumentNumber: true,
|
|
16
|
-
documentDate: "documentDate",
|
|
17
|
-
allStatus: [
|
|
18
|
-
{ "status": "D", statusName: "Draft", "readOnly": true, "actions": ["confirm", "void"] },
|
|
19
|
-
{ "status": "CO", statusName: "Confirmed", "readOnly": true, "actions": ["revert", "void"] },
|
|
20
|
-
{ "status": "V", statusName: "Void", "readOnly": true, "actions": ["revert"] },
|
|
21
|
-
],
|
|
22
|
-
additionalApis: [{
|
|
23
|
-
action: "confirm",
|
|
24
|
-
entrypoint: ":id/confirm",
|
|
25
|
-
requiredrole: [],
|
|
26
|
-
method: type_1.RESTMethods.post,
|
|
27
|
-
execute: "setDocumentStatus",
|
|
28
|
-
description: "confirm document and change status to CO"
|
|
29
|
-
}, {
|
|
30
|
-
action: "void",
|
|
31
|
-
entrypoint: ":id/void",
|
|
32
|
-
querypara: ["reason"],
|
|
33
|
-
requiredrole: [],
|
|
34
|
-
method: type_1.RESTMethods.post,
|
|
35
|
-
execute: "setDocumentStatus",
|
|
36
|
-
description: "confirm document and change status to V"
|
|
37
|
-
}, {
|
|
38
|
-
action: "revert",
|
|
39
|
-
entrypoint: ":id/revert",
|
|
40
|
-
requiredrole: [],
|
|
41
|
-
method: type_1.RESTMethods.post,
|
|
42
|
-
execute: "setDocumentStatus",
|
|
43
|
-
description: "revert document and change status to D"
|
|
44
|
-
}],
|
|
45
|
-
// simple => pure model and service(no page,api),
|
|
46
|
-
// default => force masterdata property,
|
|
47
|
-
// transaction => force masterdata property
|
|
48
|
-
schemaType: type_1.SupportedSchemaType.transaction,
|
|
49
|
-
},
|
|
50
|
-
properties: {
|
|
51
|
-
_id: { type: 'string', description: "system field" },
|
|
52
|
-
tenantId: { type: 'integer', default: 1, description: "system field" },
|
|
53
|
-
orgId: { type: 'integer', default: 1, description: "system field" },
|
|
54
|
-
branchId: { type: 'integer', default: 1, description: "system field" },
|
|
55
|
-
created: { type: 'string', description: "system field" },
|
|
56
|
-
updated: { type: 'string', description: "system field" },
|
|
57
|
-
createdby: { type: 'string', description: "system field" },
|
|
58
|
-
updatedby: { type: 'string', description: "system field" },
|
|
59
|
-
docNoFormat: {
|
|
60
|
-
type: "object",
|
|
61
|
-
"x-foreignkey": "docnoformat",
|
|
62
|
-
properties: { _id: { "type": "string" }, label: { "type": "string" } },
|
|
63
|
-
description: "system field"
|
|
64
|
-
},
|
|
65
|
-
docStatus: { type: "string", description: "system field" }
|
|
66
|
-
},
|
|
67
|
-
definitions: {
|
|
68
|
-
foreignkey: {
|
|
69
|
-
type: "object",
|
|
70
|
-
properties: { _id: { "type": "string" }, label: { "type": "string" }, code: { "type": "string" } }
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
//# sourceMappingURL=transaction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src/schematype/transaction.ts"],"names":[],"mappings":";;;AAAA,kCAAgF;AACnE,QAAA,WAAW,GAAc;IAClC,IAAI,EAAC,QAAQ;IACb,oBAAoB,EAAC;QACnB,aAAa,EAAC,oBAAa,CAAC,GAAG;QAC/B,aAAa,EAAC,EAAE;QAChB,YAAY,EAAC,EAAE;QACf,YAAY,EAAC,EAAE;QACf,QAA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storage.d.ts
DELETED
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
|