@simitgroup/simpleapp-generator 1.6.7-d-alpha → 1.6.7-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 CHANGED
@@ -1,3 +1,8 @@
1
+ [1.6.7e-alpha]
2
+
3
+ 1. Add Current Navigation For Mini App JS SDK
4
+ 2. Fix Webhook Log Resource Name No Follow Naming Rule
5
+
1
6
  [1.6.7d-alpha]
2
7
 
3
8
  1. Change Table Remove Button Color
@@ -1 +1 @@
1
- {"version":3,"file":"webhooklog.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/webhooklog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA8B,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,UAAU,EAAE,UAgFxB,CAAA"}
1
+ {"version":3,"file":"webhooklog.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/webhooklog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA8B,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,UAAU,EAAE,UAyExB,CAAC"}
@@ -3,82 +3,76 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.webhooklog = void 0;
4
4
  const type_1 = require("../type");
5
5
  exports.webhooklog = {
6
- "type": "object",
7
- "x-simpleapp-config": {
8
- "documentType": "webhooklog",
9
- "documentName": "webhooklog",
10
- "isolationType": type_1.IsolationType.branch,
11
- "uniqueKey": "_id",
12
- "resourceName": "webhooklog"
6
+ type: 'object',
7
+ 'x-simpleapp-config': {
8
+ documentType: 'webhooklog',
9
+ documentName: 'webhooklog',
10
+ isolationType: type_1.IsolationType.branch,
11
+ uniqueKey: '_id',
12
+ resourceName: 'webhookLog'
13
13
  },
14
- "required": [
15
- "title",
16
- "webHookId",
17
- "body",
18
- "dataId",
19
- "msg"
20
- ],
21
- "properties": {
22
- "_id": {
23
- "type": "string"
24
- },
25
- "webHookId": {
26
- "type": "string"
27
- },
28
- "dataId": {
29
- "type": "string"
30
- },
31
- "created": {
32
- "type": "string"
33
- },
34
- "updated": {
35
- "type": "string"
36
- },
37
- "createdBy": {
38
- "type": "string"
39
- },
40
- "updatedBy": {
41
- "type": "string"
42
- },
43
- "tenantId": {
44
- "type": "integer",
45
- "default": 1,
46
- "minimum": 0
47
- },
48
- "orgId": {
49
- "type": "integer",
50
- "default": 1,
51
- "minimum": 0
52
- },
53
- "branchId": {
54
- "type": "integer",
55
- "default": 1,
56
- "minimum": 0
57
- },
58
- "title": {
59
- "type": "string",
60
- "minLength": 3
61
- },
62
- "resource": {
63
- "type": "string"
64
- },
65
- "actionName": {
66
- "type": "string"
67
- },
68
- "statusCode": {
69
- "type": "number"
70
- },
71
- "status": {
72
- "type": "string",
73
- "enum": ["success", "failed"]
74
- },
75
- "body": {
76
- "type": "string",
77
- "format": "text",
78
- "minLength": 3
79
- },
80
- "msg": {
81
- "type": "string"
14
+ required: ['title', 'webHookId', 'body', 'dataId', 'msg'],
15
+ properties: {
16
+ _id: {
17
+ type: 'string'
18
+ },
19
+ webHookId: {
20
+ type: 'string'
21
+ },
22
+ dataId: {
23
+ type: 'string'
24
+ },
25
+ created: {
26
+ type: 'string'
27
+ },
28
+ updated: {
29
+ type: 'string'
30
+ },
31
+ createdBy: {
32
+ type: 'string'
33
+ },
34
+ updatedBy: {
35
+ type: 'string'
36
+ },
37
+ tenantId: {
38
+ type: 'integer',
39
+ default: 1,
40
+ minimum: 0
41
+ },
42
+ orgId: {
43
+ type: 'integer',
44
+ default: 1,
45
+ minimum: 0
46
+ },
47
+ branchId: {
48
+ type: 'integer',
49
+ default: 1,
50
+ minimum: 0
51
+ },
52
+ title: {
53
+ type: 'string',
54
+ minLength: 3
55
+ },
56
+ resource: {
57
+ type: 'string'
58
+ },
59
+ actionName: {
60
+ type: 'string'
61
+ },
62
+ statusCode: {
63
+ type: 'number'
64
+ },
65
+ status: {
66
+ type: 'string',
67
+ enum: ['success', 'failed']
68
+ },
69
+ body: {
70
+ type: 'string',
71
+ format: 'text',
72
+ minLength: 3
73
+ },
74
+ msg: {
75
+ type: 'string'
82
76
  }
83
77
  }
84
78
  };
@@ -1 +1 @@
1
- {"version":3,"file":"webhooklog.js","sourceRoot":"","sources":["../../src/buildinschemas/webhooklog.ts"],"names":[],"mappings":";;;AAAA,kCAAiE;AAEpD,QAAA,UAAU,GAAe;IACpC,MAAM,EAAE,QAAQ;IAChB,oBAAoB,EAAE;QACpB,cAAc,EAAE,YAAY;QAC5B,cAAc,EAAE,YAAY;QAC5B,eAAe,EAAE,oBAAa,CAAC,MAAM;QACrC,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,YAAY;KAC7B;IACD,UAAU,EAAE;QACV,OAAO;QACP,WAAW;QACX,MAAM;QACN,QAAQ;QACR,KAAK;KACN;IACD,YAAY,EAAE;QACZ,KAAK,EAAE;YACL,MAAM,EAAE,QAAQ;SACjB;QACD,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;SACjB;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;SACjB;QACD,SAAS,EAAE;YACT,MAAM,EAAE,QAAQ;SACjB;QACD,SAAS,EAAE;YACT,MAAM,EAAE,QAAQ;SACjB;QACD,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;SACjB;QACD,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;SACjB;QACD,UAAU,EAAE;YACV,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,CAAC;SACb;QACD,OAAO,EAAE;YACP,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,CAAC;SACb;QACD,UAAU,EAAE;YACV,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,CAAC;SACb;QACD,OAAO,EAAE;YACP,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;SACf;QACD,UAAU,EAAE;YACV,MAAM,EAA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AAS;YACf,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;SACX;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;SACX;QACD,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;SACb;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;SAC5B;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,MAAM;YACd,SAAS,EAAE,CAAC;SACb;QACD,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simitgroup/simpleapp-generator",
3
- "version": "1.6.7d-alpha",
3
+ "version": "1.6.7e-alpha",
4
4
  "description": "frontend nuxtjs and backend nests code generator using jsonschema",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/reset-install.sh CHANGED
@@ -1,4 +1,4 @@
1
1
  npm remove -g @simitgroup/simpleapp-generator
2
2
  npm cache clean --force
3
- npm run build && npm i -g
4
- # npm install -g @simitgroup/simpleapp-generator
3
+ # npm run build && npm i -g
4
+ npm install -g @simitgroup/simpleapp-generator
@@ -1,83 +1,76 @@
1
1
  import { SchemaType, RESTMethods, IsolationType } from '../type';
2
2
 
3
3
  export const webhooklog: SchemaType = {
4
- "type": "object",
5
- "x-simpleapp-config": {
6
- "documentType": "webhooklog",
7
- "documentName": "webhooklog",
8
- "isolationType": IsolationType.branch,
9
- "uniqueKey": "_id",
10
- "resourceName": "webhooklog"
4
+ type: 'object',
5
+ 'x-simpleapp-config': {
6
+ documentType: 'webhooklog',
7
+ documentName: 'webhooklog',
8
+ isolationType: IsolationType.branch,
9
+ uniqueKey: '_id',
10
+ resourceName: 'webhookLog'
11
11
  },
12
- "required": [
13
- "title",
14
- "webHookId",
15
- "body",
16
- "dataId",
17
- "msg"
18
- ],
19
- "properties": {
20
- "_id": {
21
- "type": "string"
22
- },
23
- "webHookId": {
24
- "type": "string"
25
- },
26
- "dataId": {
27
- "type": "string"
28
- },
29
- "created": {
30
- "type": "string"
31
- },
32
- "updated": {
33
- "type": "string"
34
- },
35
- "createdBy": {
36
- "type": "string"
37
- },
38
- "updatedBy": {
39
- "type": "string"
40
- },
41
- "tenantId": {
42
- "type": "integer",
43
- "default": 1,
44
- "minimum": 0
45
- },
46
- "orgId": {
47
- "type": "integer",
48
- "default": 1,
49
- "minimum": 0
50
- },
51
- "branchId": {
52
- "type": "integer",
53
- "default": 1,
54
- "minimum": 0
55
- },
56
- "title": {
57
- "type": "string",
58
- "minLength": 3
59
- },
60
- "resource": {
61
- "type": "string"
62
- },
63
- "actionName": {
64
- "type": "string"
65
- },
66
- "statusCode": {
67
- "type": "number"
68
- },
69
- "status": {
70
- "type": "string",
71
- "enum":["success","failed"]
72
- },
73
- "body": {
74
- "type": "string",
75
- "format":"text",
76
- "minLength":3
77
- },
78
- "msg":{
79
- "type":"string"
12
+ required: ['title', 'webHookId', 'body', 'dataId', 'msg'],
13
+ properties: {
14
+ _id: {
15
+ type: 'string'
16
+ },
17
+ webHookId: {
18
+ type: 'string'
19
+ },
20
+ dataId: {
21
+ type: 'string'
22
+ },
23
+ created: {
24
+ type: 'string'
25
+ },
26
+ updated: {
27
+ type: 'string'
28
+ },
29
+ createdBy: {
30
+ type: 'string'
31
+ },
32
+ updatedBy: {
33
+ type: 'string'
34
+ },
35
+ tenantId: {
36
+ type: 'integer',
37
+ default: 1,
38
+ minimum: 0
39
+ },
40
+ orgId: {
41
+ type: 'integer',
42
+ default: 1,
43
+ minimum: 0
44
+ },
45
+ branchId: {
46
+ type: 'integer',
47
+ default: 1,
48
+ minimum: 0
49
+ },
50
+ title: {
51
+ type: 'string',
52
+ minLength: 3
53
+ },
54
+ resource: {
55
+ type: 'string'
56
+ },
57
+ actionName: {
58
+ type: 'string'
59
+ },
60
+ statusCode: {
61
+ type: 'number'
62
+ },
63
+ status: {
64
+ type: 'string',
65
+ enum: ['success', 'failed']
66
+ },
67
+ body: {
68
+ type: 'string',
69
+ format: 'text',
70
+ minLength: 3
71
+ },
72
+ msg: {
73
+ type: 'string'
80
74
  }
81
-
82
75
  }
83
- }
76
+ };
@@ -5,24 +5,38 @@
5
5
  * Author: --
6
6
  */
7
7
 
8
- import { MINI_APP_BRIDGE_MESSAGES } from './constants/common.constant';
9
- import { MiniAppBridgeResourceAccessor } from './services/bridge-resource-accessor.service';
10
- import { MiniAppBridgeMessageNavigate } from './types/bridge.type';
8
+ import { MINI_APP_BRIDGE_MESSAGES } from "./constants/common.constant";
9
+ import { MiniAppBridgeResourceAccessor } from "./services/bridge-resource-accessor.service";
10
+ import {
11
+ MiniAppBridgeMessageNavigate,
12
+ MiniAppBridgeMessageNavigateCurrentMiniApp,
13
+ } from "./types/bridge.type";
11
14
 
12
15
  export class SimtrainEcoMiniAppJsSdk extends MiniAppBridgeResourceAccessor {
13
16
  public ui = {
14
17
  navigateTo: (target: string, id?: string, query?: string) => {
15
18
  const message: MiniAppBridgeMessageNavigate = {
16
19
  type: MINI_APP_BRIDGE_MESSAGES.NAVIGATE,
17
- params: { target, id, query }
20
+ params: { target, id, query },
18
21
  };
19
22
 
20
- window.parent.postMessage(message, '*');
21
- }
23
+ window.parent.postMessage(message, "*");
24
+ },
25
+ };
26
+
27
+ public current = {
28
+ navigateTo: (target: string, query?: string) => {
29
+ const message: MiniAppBridgeMessageNavigateCurrentMiniApp = {
30
+ type: MINI_APP_BRIDGE_MESSAGES.NAVIGATE_CURRENT_MINI_APP,
31
+ params: { target, query },
32
+ };
33
+
34
+ window.parent.postMessage(message, "*");
35
+ },
22
36
  };
23
37
 
24
38
  constructor() {
25
39
  super();
26
- console.log('Hello from SimtrainEcoMiniAppJsSdk !!!');
40
+ console.log("Hello from SimtrainEcoMiniAppJsSdk !!!");
27
41
  }
28
42
  }