@simitgroup/simpleapp-generator 1.6.6-p-alpha → 1.6.6-q-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/dist/buildinschemas/autoincreament.d.ts.map +1 -1
- package/dist/buildinschemas/autoincreament.js +17 -14
- package/dist/buildinschemas/autoincreament.js.map +1 -1
- package/dist/buildinschemas/branch.d.ts.map +1 -1
- package/dist/buildinschemas/branch.js +25 -24
- package/dist/buildinschemas/branch.js.map +1 -1
- package/dist/buildinschemas/changehistories.d.ts.map +1 -1
- package/dist/buildinschemas/changehistories.js +10 -9
- package/dist/buildinschemas/changehistories.js.map +1 -1
- package/dist/buildinschemas/customfield.d.ts.map +1 -1
- package/dist/buildinschemas/customfield.js +14 -24
- package/dist/buildinschemas/customfield.js.map +1 -1
- package/dist/buildinschemas/docnoformat.d.ts.map +1 -1
- package/dist/buildinschemas/docnoformat.js +34 -23
- package/dist/buildinschemas/docnoformat.js.map +1 -1
- package/dist/buildinschemas/documentevent.d.ts.map +1 -1
- package/dist/buildinschemas/documentevent.js +36 -26
- package/dist/buildinschemas/documentevent.js.map +1 -1
- package/dist/buildinschemas/keyvaluepair.d.ts.map +1 -1
- package/dist/buildinschemas/keyvaluepair.js +7 -6
- package/dist/buildinschemas/keyvaluepair.js.map +1 -1
- package/dist/buildinschemas/organization.d.ts.map +1 -1
- package/dist/buildinschemas/organization.js +34 -30
- package/dist/buildinschemas/organization.js.map +1 -1
- package/dist/buildinschemas/permission.d.ts.map +1 -1
- package/dist/buildinschemas/permission.js +16 -7
- package/dist/buildinschemas/permission.js.map +1 -1
- package/dist/buildinschemas/systemmessage.d.ts.map +1 -1
- package/dist/buildinschemas/systemmessage.js +35 -32
- package/dist/buildinschemas/systemmessage.js.map +1 -1
- package/dist/buildinschemas/tenant.d.ts.map +1 -1
- package/dist/buildinschemas/tenant.js +17 -16
- package/dist/buildinschemas/tenant.js.map +1 -1
- package/dist/buildinschemas/user.d.ts.map +1 -1
- package/dist/buildinschemas/user.js +34 -31
- package/dist/buildinschemas/user.js.map +1 -1
- package/dist/buildinschemas/webhook.d.ts.map +1 -1
- package/dist/buildinschemas/webhook.js +24 -23
- package/dist/buildinschemas/webhook.js.map +1 -1
- package/dist/framework.d.ts.map +1 -1
- package/dist/framework.js +2 -4
- package/dist/framework.js.map +1 -1
- package/dist/generate.js +17 -2
- package/dist/generate.js.map +1 -1
- package/dist/processors/jsonschemabuilder.js +14 -12
- package/dist/processors/jsonschemabuilder.js.map +1 -1
- package/dist/type.d.ts +39 -5
- package/dist/type.d.ts.map +1 -1
- package/dist/type.js.map +1 -1
- package/package.json +1 -1
- package/src/buildinschemas/autoincreament.ts +35 -33
- package/src/buildinschemas/branch.ts +47 -47
- package/src/buildinschemas/changehistories.ts +31 -30
- package/src/buildinschemas/customfield.ts +14 -24
- package/src/buildinschemas/docnoformat.ts +54 -43
- package/src/buildinschemas/documentevent.ts +42 -33
- package/src/buildinschemas/keyvaluepair.ts +25 -25
- package/src/buildinschemas/organization.ts +54 -50
- package/src/buildinschemas/permission.ts +34 -25
- package/src/buildinschemas/systemmessage.ts +39 -38
- package/src/buildinschemas/tenant.ts +46 -45
- package/src/buildinschemas/user.ts +64 -60
- package/src/buildinschemas/webhook.ts +62 -61
- package/src/framework.ts +2 -4
- package/src/generate.ts +17 -1
- package/src/processors/jsonschemabuilder.ts +6 -4
- package/src/type.ts +271 -215
- package/templates/basic/miniAppJsSdk/resource-bridge.service.ts.eta +9 -7
- package/templates/basic/miniAppStreamlitSdk/resource-bridge.service.ts.eta +22 -7
- package/templates/basic/nuxt/jsonschema.ts.eta +7 -0
- package/templates/basic/nuxt/resource-bridge.editable.service.ts.eta +40 -0
- package/templates/basic/nuxt/resource-bridge.service.ts.eta +24 -21
- package/templates/basic/nuxt/simpleapp.generate.client.ts.eta +27 -9
- package/templates/miniAppJsSdk/src/services/bridge-resource-accessor.service.ts.eta +2 -2
- package/templates/miniAppStreamlitSdk/simtrain_eco_mini_app_streamlit_sdk/sdk.py.eta +5 -2
- package/templates/nuxt/components/simpleApp/SimpleAppForm.vue.eta +4 -3
- package/templates/nuxt/components/simpleApp/SimpleAppInputTable.vue.eta +0 -1
- package/templates/nuxt/plugins/18.simpleapp-custom-field-store.ts.eta +9 -3
- package/templates/nuxt/plugins/20.simpleapp-userstore.ts.eta +316 -341
- package/templates/nuxt/simpleapp/generate/clients/SimpleAppClient.ts.eta +32 -22
- package/templates/nuxt/simpleapp/generate/jsonSchemas/index.ts.eta +11 -0
- package/templates/nuxt/simpleapp/generate/miniApp/bridge/constants/common.constant.ts.eta +1 -0
- package/templates/nuxt/simpleapp/generate/miniApp/bridge/constants/resource.constant.ts.eta +2 -2
- package/templates/nuxt/simpleapp/generate/miniApp/bridge/services/bridge-resource-accessor.service.ts.eta +4 -4
- package/templates/nuxt/simpleapp/generate/miniApp/bridge/services/bridge.service.ts.eta +20 -1
- package/templates/nuxt/simpleapp/generate/miniApp/bridge/types/bridge.type.ts.eta +9 -0
- package/templates/nuxt/simpleapp/generate/miniApp/bridge/types/resource-mapper.type.ts.eta +2 -2
- package/templates/project/build.sh.eta +0 -5
- package/templates/nest/src/simpleapp/apischemas/customfield.ts.eta +0 -21
- package/templates/nuxt/simpleapp/generate/clients/SimpleAppCustomFieldClient.ts.eta +0 -188
|
@@ -3,35 +3,39 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.organization = void 0;
|
|
4
4
|
const type_1 = require("../type");
|
|
5
5
|
exports.organization = {
|
|
6
|
-
type:
|
|
7
|
-
|
|
6
|
+
type: 'object',
|
|
7
|
+
'x-simpleapp-config': {
|
|
8
8
|
isolationType: type_1.IsolationType.tenant,
|
|
9
9
|
documentType: 'org',
|
|
10
10
|
documentName: 'organization',
|
|
11
|
-
pageType:
|
|
11
|
+
pageType: 'crud',
|
|
12
12
|
uniqueKey: 'orgCode',
|
|
13
13
|
uniqueKeys: [['orgId']],
|
|
14
14
|
documentTitle: 'orgName',
|
|
15
15
|
additionalAutoCompleteFields: ['orgId'],
|
|
16
|
-
additionalApis: [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
16
|
+
additionalApis: [
|
|
17
|
+
{
|
|
18
|
+
action: 'getlogo',
|
|
19
|
+
entryPoint: 'logo',
|
|
20
|
+
requiredRole: ['User'],
|
|
21
|
+
method: type_1.RESTMethods.get,
|
|
22
|
+
responseType: 'String',
|
|
23
|
+
description: 'obtain avatar base64 jpg image'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
action: 'uploadlogo',
|
|
27
|
+
entryPoint: 'logo',
|
|
28
|
+
requiredRole: ['Admin'],
|
|
29
|
+
method: type_1.RESTMethods.post,
|
|
30
|
+
schema: 'KeyValue',
|
|
31
|
+
responseType: 'String',
|
|
32
|
+
description: 'post avatar in base64 jpg image'
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
resourceName: 'organization'
|
|
32
36
|
},
|
|
33
|
-
required: [
|
|
34
|
-
|
|
37
|
+
required: ['orgId', 'orgCode', 'orgName'],
|
|
38
|
+
properties: {
|
|
35
39
|
_id: { type: 'string' },
|
|
36
40
|
created: { type: 'string' },
|
|
37
41
|
updated: { type: 'string' },
|
|
@@ -40,15 +44,15 @@ exports.organization = {
|
|
|
40
44
|
tenantId: { type: 'integer', default: 1, minimum: 1 },
|
|
41
45
|
orgId: { type: 'integer', default: 1, minimum: 1 },
|
|
42
46
|
branchId: { type: 'integer', default: 1, minimum: 0 },
|
|
43
|
-
orgCode: {
|
|
44
|
-
orgName: { type:
|
|
45
|
-
registrationNo: { type:
|
|
46
|
-
active: { type:
|
|
47
|
-
description: { type:
|
|
48
|
-
timeZone: {
|
|
49
|
-
offsetMinute: {
|
|
50
|
-
currency: {
|
|
51
|
-
country: {
|
|
47
|
+
orgCode: { type: 'string', minLength: 1 },
|
|
48
|
+
orgName: { type: 'string' },
|
|
49
|
+
registrationNo: { type: 'string' },
|
|
50
|
+
active: { type: 'boolean', default: true },
|
|
51
|
+
description: { type: 'string', format: 'text' },
|
|
52
|
+
timeZone: { type: 'string', examples: ['Asia/Kuala_Lumpur'] },
|
|
53
|
+
offsetMinute: { type: 'number', default: 0 },
|
|
54
|
+
currency: { type: 'string', minimum: 3, maximum: 3 },
|
|
55
|
+
country: { type: 'string', minimum: 2, maximum: 2 }
|
|
52
56
|
}
|
|
53
57
|
};
|
|
54
58
|
//# sourceMappingURL=organization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/buildinschemas/organization.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/buildinschemas/organization.ts"],"names":[],"mappings":";;;AAAA,kCAAiE;AAEpD,QAAA,YAAY,GAAe;IACtC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE;QACpB,aAAa,EAAE,oBAAa,CAAC,MAAM;QACnC,YAAY,EAAE,KAAK;QACnB,YAAY,EAAE,cAAc;QAC5B,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,SAAS;QACpB,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;QACvB,aAAa,EAAE,SAAS;QACxB,4BAA4B,EAAE,CAAC,OAAO,CAAC;QACvC,cAAc,EAAE;YACd;gBACE,MAAM,EAAE,SAAS;gBACjB,UAAU,EAAE,MAAM;gBAClB,YAAY,EAAE,CAAC,MAAM,CAAC;gBACtB,MAAM,EAAE,kBAAW,CAAC,GAAG;gBACvB,YAAY,EAAE,QAAQ;gBACtB,WAAW,EAAE,gCAAgC;aAC9C;YACD;gBACE,MAAM,EAAE,YAAY;gBACpB,UAAU,EAAE,MAAM;gBAClB,YAAY,EAAE,CAAC,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I,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE;QAC5C,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QACpD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;KACpD;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/permission.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA8B,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,UAAU,EAAE,UAiCxB,CAAC"}
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.permission = void 0;
|
|
4
4
|
const type_1 = require("../type");
|
|
5
5
|
exports.permission = {
|
|
6
|
-
type:
|
|
7
|
-
|
|
6
|
+
type: 'object',
|
|
7
|
+
'x-simpleapp-config': {
|
|
8
8
|
documentType: 'perm',
|
|
9
9
|
documentName: 'permission',
|
|
10
|
-
isolationType: type_1.IsolationType.org
|
|
10
|
+
isolationType: type_1.IsolationType.org,
|
|
11
|
+
resourceName: 'permission'
|
|
11
12
|
},
|
|
12
13
|
properties: {
|
|
13
14
|
_id: { type: 'string' },
|
|
@@ -19,12 +20,20 @@ exports.permission = {
|
|
|
19
20
|
orgId: { type: 'integer', default: 1, minimum: 0 },
|
|
20
21
|
branchId: { type: 'integer', default: 1, minimum: 0 },
|
|
21
22
|
groups: {
|
|
22
|
-
type:
|
|
23
|
+
type: 'array',
|
|
23
24
|
minItems: 1,
|
|
24
|
-
items: { type:
|
|
25
|
+
items: { type: 'string' }
|
|
25
26
|
},
|
|
26
|
-
uid: {
|
|
27
|
-
|
|
27
|
+
uid: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
description: 'sso unique identity, which is keycloak sub'
|
|
30
|
+
},
|
|
31
|
+
userId: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
'x-foreignkey': 'user',
|
|
34
|
+
format: 'uuid',
|
|
35
|
+
description: 'primary key from user'
|
|
36
|
+
}
|
|
28
37
|
}
|
|
29
38
|
};
|
|
30
39
|
//# sourceMappingURL=permission.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.js","sourceRoot":"","sources":["../../src/buildinschemas/permission.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"permission.js","sourceRoot":"","sources":["../../src/buildinschemas/permission.ts"],"names":[],"mappings":";;;AAAA,kCAAiE;AAEpD,QAAA,UAAU,GAAe;IACpC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE;QACpB,YAAY,EAAE,MAAM;QACpB,YAAY,EAAE,YAAY;QAC1B,aAAa,EAAE,oBAAa,CAAC,GAAG;QAChC,YAAY,EAAE,YAAY;KAC3B;IACD,UAAU,EAAE;QACV,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QACrD,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QAClD,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QACrD,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,CAAC;YACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC1B;QACD,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4CAA4C;SAC1D;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,cAAc,EAAE,MAAM;YACtB,MAAM,EAAE,MAAM;YACd,WAAW,EAAE,uBAAuB;SACrC;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"systemmessage.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/systemmessage.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"systemmessage.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/systemmessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA8B,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,aAAa,EAAE,UAwC3B,CAAC"}
|
|
@@ -3,40 +3,43 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.systemmessage = void 0;
|
|
4
4
|
const type_1 = require("../type");
|
|
5
5
|
exports.systemmessage = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
additionalApis: [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
type: 'object',
|
|
7
|
+
'x-simpleapp-config': {
|
|
8
|
+
documentType: 'sysmsg',
|
|
9
|
+
documentName: 'systemmessage',
|
|
10
|
+
isolationType: type_1.IsolationType.tenant,
|
|
11
|
+
documentTitle: 'messageTitle',
|
|
12
|
+
additionalApis: [
|
|
13
|
+
{
|
|
14
|
+
action: 'readmsg',
|
|
15
|
+
entryPoint: ':id/read',
|
|
16
|
+
requiredRole: ['User'],
|
|
17
|
+
responseType: 'Systemmessage',
|
|
18
|
+
method: type_1.RESTMethods.get,
|
|
19
|
+
description: 'get message content and mark read'
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
resourceName: 'systemMessage'
|
|
20
23
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
properties: {
|
|
25
|
+
_id: { type: 'string', format: 'uuid' },
|
|
26
|
+
created: { type: 'string' },
|
|
27
|
+
updated: { type: 'string' },
|
|
28
|
+
createdBy: { type: 'string' },
|
|
29
|
+
updatedBy: { type: 'string' },
|
|
30
|
+
tenantId: { type: 'integer', default: 1 },
|
|
31
|
+
orgId: { type: 'integer', default: 1 },
|
|
32
|
+
branchId: { type: 'integer', default: 1 },
|
|
33
|
+
uid: { type: 'string', format: 'uuid' },
|
|
34
|
+
messageType: { type: 'string', minLength: 3 },
|
|
35
|
+
messageTitle: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
minLength: 3
|
|
35
38
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
read: { type: 'boolean', default: false },
|
|
40
|
+
body: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
format: 'html'
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"systemmessage.js","sourceRoot":"","sources":["../../src/buildinschemas/systemmessage.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"systemmessage.js","sourceRoot":"","sources":["../../src/buildinschemas/systemmessage.ts"],"names":[],"mappings":";;;AAAA,kCAAiE;AAEpD,QAAA,aAAa,GAAe;IACvC,IAAI,EA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d,MAAM,EAAE,MAAM;SACf;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/tenant.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"tenant.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/tenant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA8B,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,MAAM,EAAE,UA6CpB,CAAC"}
|
|
@@ -3,17 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.tenant = void 0;
|
|
4
4
|
const type_1 = require("../type");
|
|
5
5
|
exports.tenant = {
|
|
6
|
-
type:
|
|
7
|
-
|
|
6
|
+
type: 'object',
|
|
7
|
+
'x-simpleapp-config': {
|
|
8
8
|
isolationType: type_1.IsolationType.none,
|
|
9
|
-
requiredRoles: [
|
|
9
|
+
requiredRoles: ['SuperAdmin'],
|
|
10
10
|
pageType: 'crud',
|
|
11
11
|
uniqueKey: 'tenantId',
|
|
12
12
|
documentTitle: 'tenantName',
|
|
13
13
|
documentName: 'tenant',
|
|
14
14
|
documentType: 'tenant',
|
|
15
|
+
resourceName: 'tenant'
|
|
15
16
|
},
|
|
16
|
-
required: [
|
|
17
|
+
required: ['tenantId', 'tenantName', 'owner'],
|
|
17
18
|
properties: {
|
|
18
19
|
_id: { type: 'string' },
|
|
19
20
|
created: { type: 'string' },
|
|
@@ -23,26 +24,26 @@ exports.tenant = {
|
|
|
23
24
|
tenantId: { type: 'integer', default: 1, minimum: 0 },
|
|
24
25
|
orgId: { type: 'integer', default: 1, minimum: 0 },
|
|
25
26
|
branchId: { type: 'integer', default: 1, minimum: 0 },
|
|
26
|
-
tenantName: { type:
|
|
27
|
-
active: {
|
|
28
|
-
businessType: { type:
|
|
27
|
+
tenantName: { type: 'string', minLength: 3 },
|
|
28
|
+
active: { type: 'boolean', examples: [true], default: true },
|
|
29
|
+
businessType: { type: 'string' },
|
|
29
30
|
clientSetting: {
|
|
30
|
-
type:
|
|
31
|
+
type: 'object',
|
|
31
32
|
properties: {
|
|
32
|
-
auditTrail: { type:
|
|
33
|
-
webhook: { type:
|
|
34
|
-
support: { type:
|
|
33
|
+
auditTrail: { type: 'boolean', default: false },
|
|
34
|
+
webhook: { type: 'boolean', default: false },
|
|
35
|
+
support: { type: 'boolean', default: false }
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
|
-
description: {
|
|
38
|
+
description: { type: 'string' },
|
|
38
39
|
owner: {
|
|
39
|
-
type:
|
|
40
|
-
|
|
41
|
-
required: [
|
|
40
|
+
type: 'object',
|
|
41
|
+
'x-foreignkey': 'user',
|
|
42
|
+
required: ['_id', 'label', 'uid'],
|
|
42
43
|
properties: {
|
|
43
44
|
_id: { type: 'string' },
|
|
44
45
|
label: { type: 'string' },
|
|
45
|
-
uid: { type: 'string' }
|
|
46
|
+
uid: { type: 'string' }
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant.js","sourceRoot":"","sources":["../../src/buildinschemas/tenant.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"tenant.js","sourceRoot":"","sources":["../../src/buildinschemas/tenant.ts"],"names":[],"mappings":";;;AAAA,kCAAiE;AAEpD,QAAA,MAAM,GAAe;IAChC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE;QACpB,aAAa,EAAE,oBAAa,CAAC,IAAI;QACjC,aAAa,EAAE,CAAC,YAAY,CAAC;QAC7B,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,UAAU;QACrB,aAAa,EAAE,YAAY;QAC3B,YAAY,EAAE,QAAQ;QACtB,YAAY,EAAE,QAAQ;QACtB,YAAY,EAAE,QAAQ;KACvB;IACD,QAAQ,EAAE,CAAC,UAAU,EAAE,YAAY,E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EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC;YACjC,UAAU,EAAE;gBACV,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACvB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aACxB;SACF;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/user.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA8B,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,IAAI,EAAE,UAgElB,CAAC"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.user = void 0;
|
|
4
4
|
const type_1 = require("../type");
|
|
5
5
|
exports.user = {
|
|
6
|
-
type:
|
|
7
|
-
|
|
6
|
+
type: 'object',
|
|
7
|
+
'x-simpleapp-config': {
|
|
8
8
|
documentType: 'user',
|
|
9
9
|
documentName: 'user',
|
|
10
10
|
pageType: 'crud',
|
|
@@ -12,24 +12,27 @@ exports.user = {
|
|
|
12
12
|
isolationType: type_1.IsolationType.tenant,
|
|
13
13
|
uniqueKey: 'email',
|
|
14
14
|
documentTitle: 'fullname',
|
|
15
|
-
requiredRoles: [
|
|
15
|
+
requiredRoles: ['SuperUser'],
|
|
16
16
|
additionalAutoCompleteFields: ['uid'],
|
|
17
17
|
additionalApis: [
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
{
|
|
19
|
+
action: 'getPermission',
|
|
20
|
+
entryPoint: ':id/permission',
|
|
21
|
+
requiredRole: [],
|
|
22
|
+
method: type_1.RESTMethods.get,
|
|
23
|
+
responseType: '[UserPermission]',
|
|
24
|
+
description: 'Get user permissoin'
|
|
24
25
|
},
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
{
|
|
27
|
+
action: 'updatePermission',
|
|
28
|
+
entryPoint: ':id/permission',
|
|
29
|
+
requiredRole: [],
|
|
30
|
+
method: type_1.RESTMethods.put,
|
|
31
|
+
schema: '[UserPermission]',
|
|
32
|
+
description: 'set user permissoin'
|
|
31
33
|
}
|
|
32
|
-
]
|
|
34
|
+
],
|
|
35
|
+
resourceName: 'user'
|
|
33
36
|
},
|
|
34
37
|
properties: {
|
|
35
38
|
_id: { type: 'string' },
|
|
@@ -41,25 +44,25 @@ exports.user = {
|
|
|
41
44
|
orgId: { type: 'integer', default: 1, minimum: 0 },
|
|
42
45
|
branchId: { type: 'integer', default: 1, minimum: 0 },
|
|
43
46
|
uid: {
|
|
44
|
-
type:
|
|
45
|
-
oneOf: [{
|
|
46
|
-
description:
|
|
47
|
+
type: 'string',
|
|
48
|
+
oneOf: [{ format: 'uuid' }, { const: '' }],
|
|
49
|
+
description: 'sso unique id, such as keycloak sub id, empty during invitation'
|
|
47
50
|
},
|
|
48
|
-
fullName: { type:
|
|
49
|
-
email: { type:
|
|
51
|
+
fullName: { type: 'string', minLength: 3 },
|
|
52
|
+
email: { type: 'string', minLength: 10, format: 'email' },
|
|
50
53
|
mobileNo: {
|
|
51
|
-
type:
|
|
52
|
-
anyOf: [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
type: 'string',
|
|
55
|
+
anyOf: [{ const: '' }, { format: 'tel', examples: ['0123456789'] }]
|
|
56
|
+
},
|
|
57
|
+
active: { type: 'boolean', default: true },
|
|
58
|
+
description: { type: 'string' },
|
|
59
|
+
lastActivity: {
|
|
60
|
+
type: 'string',
|
|
61
|
+
description: 'capture ISO8601 last api call'
|
|
56
62
|
},
|
|
57
|
-
active: { type: "boolean", default: true },
|
|
58
|
-
description: { type: "string" },
|
|
59
|
-
lastActivity: { type: "string", description: "capture ISO8601 last api call" },
|
|
60
63
|
completedTours: {
|
|
61
|
-
type:
|
|
62
|
-
items: {
|
|
64
|
+
type: 'array',
|
|
65
|
+
items: { type: 'string', examples: ['mainpage'] }
|
|
63
66
|
}
|
|
64
67
|
}
|
|
65
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/buildinschemas/user.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/buildinschemas/user.ts"],"names":[],"mappings":";;;AAAA,kCAAiE;AAEpD,QAAA,IAAI,GAAe;IAC9B,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE;QACpB,YAAY,EAAE,MAAM;QACpB,YAAY,EAAE,MAAM;QACpB,QAAQ,EAAE,MAAM;QAChB,iBAAiB,EAAE,IAAI;QACvB,aAAa,EAAE,oBAAa,CAAC,MAAM;QACnC,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,UAAU;QACzB,aAAa,EAAE,CAAC,WAAW,CAAC;QAC5B,4BAA4B,EAAE,CAAC,KAAK,CAAC;QACrC,cAAc,EAAE;YACd;gBACE,MAAM,EAAE,eAAe;gBACvB,UAAU,EAAE,gBAAgB;gBAC5B,YAAY,EAAE,EAAE;gBAChB,MAAM,EAAE,kBAAW,CAAC,GAAG;gBACvB,YAAY,EAAE,kBAAkB;gBAChC,WAAW,EAAE,qBAAqB;aACnC;YACD;gBACE,MAAM,EAAE,kBAAkB;gBAC1B,UAAU,EAAE,gBAAgB;gBAC5B,YAAY,EAAE,EAAE;gBAChB,MAAM,EAAE,kBAAW,CAAC,GAAG;gBACvB,MAAM,EAAE,kBAAkB;gBAC1B,WAAW,EAAE,qBAAqB;aACnC;SACF;QACD,YAAY,EAAE,MAAM;KACrB;IACD,UAAU,EAAE;QACV,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AAW,EAAE,+BAA+B;SAC7C;QACD,cAAc,EAAE;YACd,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE;SAClD;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/webhook.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/webhook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA8B,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,OAAO,EAAE,UA+DrB,CAAC"}
|
|
@@ -3,15 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.webhook = void 0;
|
|
4
4
|
const type_1 = require("../type");
|
|
5
5
|
exports.webhook = {
|
|
6
|
-
type:
|
|
7
|
-
|
|
6
|
+
type: 'object',
|
|
7
|
+
'x-simpleapp-config': {
|
|
8
8
|
documentType: 'webhook',
|
|
9
9
|
documentName: 'webhook',
|
|
10
10
|
isolationType: type_1.IsolationType.tenant,
|
|
11
11
|
uniqueKey: 'title',
|
|
12
|
-
documentTitle: 'title'
|
|
12
|
+
documentTitle: 'title',
|
|
13
|
+
resourceName: 'webhook'
|
|
13
14
|
},
|
|
14
|
-
required: [
|
|
15
|
+
required: ['title', 'url'],
|
|
15
16
|
properties: {
|
|
16
17
|
_id: { type: 'string' },
|
|
17
18
|
created: { type: 'string' },
|
|
@@ -21,45 +22,45 @@ exports.webhook = {
|
|
|
21
22
|
tenantId: { type: 'integer', default: 1, minimum: 0 },
|
|
22
23
|
orgId: { type: 'integer', default: 1, minimum: 0 },
|
|
23
24
|
branchId: { type: 'integer', default: 1, minimum: 0 },
|
|
24
|
-
title: { type:
|
|
25
|
-
url: { type:
|
|
26
|
-
serverSubscriptionId: { type:
|
|
27
|
-
serverSubscriptionSecret: { type:
|
|
25
|
+
title: { type: 'string', minLength: 3 },
|
|
26
|
+
url: { type: 'string', format: 'uri' },
|
|
27
|
+
serverSubscriptionId: { type: 'string' },
|
|
28
|
+
serverSubscriptionSecret: { type: 'string' },
|
|
28
29
|
requestMethod: {
|
|
29
|
-
type:
|
|
30
|
-
enum: ['post', 'get', 'patch', 'put', 'delete', 'head']
|
|
30
|
+
type: 'string',
|
|
31
|
+
enum: ['post', 'get', 'patch', 'put', 'delete', 'head']
|
|
31
32
|
},
|
|
32
33
|
authentication: {
|
|
33
|
-
type:
|
|
34
|
+
type: 'string',
|
|
34
35
|
enum: ['none', 'basic'],
|
|
35
|
-
description:
|
|
36
|
+
description: 'apikey authentication use none + headers props'
|
|
36
37
|
},
|
|
37
38
|
basicAuth: {
|
|
38
|
-
type:
|
|
39
|
+
type: 'object',
|
|
39
40
|
properties: {
|
|
40
|
-
user: { type:
|
|
41
|
-
password: { type:
|
|
41
|
+
user: { type: 'string' },
|
|
42
|
+
password: { type: 'string' }
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
headers: {
|
|
45
|
-
type:
|
|
46
|
+
type: 'array',
|
|
46
47
|
items: {
|
|
47
|
-
type:
|
|
48
|
-
description:
|
|
48
|
+
type: 'object',
|
|
49
|
+
description: 'http headers',
|
|
49
50
|
properties: {
|
|
50
51
|
name: { type: 'string' },
|
|
51
52
|
value: { type: 'string' }
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
},
|
|
55
|
-
description: { type:
|
|
56
|
-
body: { type:
|
|
57
|
-
active: { type:
|
|
56
|
+
description: { type: 'string', format: 'text' },
|
|
57
|
+
body: { type: 'string', format: 'text', minLength: 3 },
|
|
58
|
+
active: { type: 'boolean', default: true },
|
|
58
59
|
eventTypes: {
|
|
59
|
-
type:
|
|
60
|
+
type: 'array',
|
|
60
61
|
minItems: 1,
|
|
61
62
|
items: {
|
|
62
|
-
type:
|
|
63
|
+
type: 'string'
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../src/buildinschemas/webhook.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../src/buildinschemas/webhook.ts"],"names":[],"mappings":";;;AAAA,kCAAiE;AAEpD,QAAA,OAAO,GAAe;IACjC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE;QACpB,YAAY,EAAE,SAAS;QACvB,YAAY,EAAE,SAAS;QACvB,aAAa,EAAE,oBAAa,CAAC,MAAM;QACnC,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,OAAO;QACtB,YAAY,EAAE,SAAS;KACxB;IACD,QAAQ,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;IAC1B,UAAU,EAAE;QACV,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QACrD,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QAClD,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QACrD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;QACvC,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE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@
|
|
|
1
|
-
{"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAsCA,eAAO,MAAM,gBAAgB,2BAE5B,CAAC;AAEF,eAAO,MAAM,aAAa,aAAc,QAAQ,SA0B/C,CAAC;AAEF,eAAO,MAAM,aAAa,aAAc,QAAQ,SAkB/C,CAAC;AAEF,eAAO,MAAM,WAAW,aAAc,QAAQ,SAwC7C,CAAC;AAEF,eAAO,MAAM,cAAc,kCA+C1B,CAAC;AAEF,eAAO,MAAM,WAAW,aAAc,QAAQ,SAqG7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAI9B,CAAC;AACF,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAsCA,eAAO,MAAM,gBAAgB,2BAE5B,CAAC;AAEF,eAAO,MAAM,aAAa,aAAc,QAAQ,SA0B/C,CAAC;AAEF,eAAO,MAAM,aAAa,aAAc,QAAQ,SAkB/C,CAAC;AAEF,eAAO,MAAM,WAAW,aAAc,QAAQ,SAwC7C,CAAC;AAEF,eAAO,MAAM,cAAc,kCA+C1B,CAAC;AAEF,eAAO,MAAM,WAAW,aAAc,QAAQ,SAqG7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAI9B,CAAC;AACF,eAAO,MAAM,yBAAyB,YAErC,CAAC;AAEF,eAAO,MAAM,UAAU,YAStB,CAAC;AAEF,eAAO,MAAM,UAAU,YAKtB,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAoBhC,CAAC"}
|
package/dist/framework.js
CHANGED
|
@@ -292,16 +292,14 @@ const prettyMiniAppJsSdk = () => {
|
|
|
292
292
|
};
|
|
293
293
|
exports.prettyMiniAppJsSdk = prettyMiniAppJsSdk;
|
|
294
294
|
const prettyMiniAppStreamlitSdk = () => {
|
|
295
|
-
|
|
296
|
-
// `npx prettier --write ${config.miniAppSdkFolder.streamlit}/simtrain_eco_mini_app_streamlit_sdk/**/* --ignore-path .my-empty-ignore`
|
|
297
|
-
// );
|
|
295
|
+
(0, child_process_1.exec)(`sh ${config.miniAppSdkFolder.streamlit}/format.sh`);
|
|
298
296
|
};
|
|
299
297
|
exports.prettyMiniAppStreamlitSdk = prettyMiniAppStreamlitSdk;
|
|
300
298
|
const prettyNuxt = () => {
|
|
301
299
|
console.log('Formatting Nuxt...');
|
|
302
300
|
(0, exports.prepareOpenApiClient)();
|
|
303
301
|
(0, child_process_1.exec)(`cd ${config.frontendFolder};npx prettier --write "./pages/**/*.vue" "./components/**/*.vue" "./generate/*/*.ts" `);
|
|
304
|
-
(0, child_process_1.exec)(`npx prettier --write ${config.frontendFolder}/simpleapp/generate/clients/*.ts ${config.frontendFolder}/simpleapp/generate/miniApp/**/*.ts`);
|
|
302
|
+
(0, child_process_1.exec)(`npx prettier --write ${config.frontendFolder}/simpleapp/generate/clients/*.ts ${config.frontendFolder}/simpleapp/generate/jsonSchemas/*.ts ${config.frontendFolder}/simpleapp/generate/miniApp/**/*.ts`);
|
|
305
303
|
};
|
|
306
304
|
exports.prettyNuxt = prettyNuxt;
|
|
307
305
|
const prettyNest = () => {
|