@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 +5 -0
- package/dist/buildinschemas/webhooklog.d.ts.map +1 -1
- package/dist/buildinschemas/webhooklog.js +69 -75
- package/dist/buildinschemas/webhooklog.js.map +1 -1
- package/package.json +1 -1
- package/reset-install.sh +2 -2
- package/src/buildinschemas/webhooklog.ts +70 -77
- package/templates/miniAppJsSdk/src/index.ts.eta +21 -7
package/ReleaseNote.md
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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,
|
|
1
|
+
{"version":3,"file":"webhooklog.js","sourceRoot":"","sources":["../../src/buildinschemas/webhooklog.ts"],"names":[],"mappings":";;;AAAA,kCAAiE;AAEpD,QAAA,UAAU,GAAe;IACpC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE;QACpB,YAAY,EAAE,YAAY;QAC1B,YAAY,EAAE,YAAY;QAC1B,aAAa,EAAE,oBAAa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json
CHANGED
package/reset-install.sh
CHANGED
|
@@ -1,83 +1,76 @@
|
|
|
1
1
|
import { SchemaType, RESTMethods, IsolationType } from '../type';
|
|
2
2
|
|
|
3
3
|
export const webhooklog: SchemaType = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
|
9
|
-
import { MiniAppBridgeResourceAccessor } from
|
|
10
|
-
import {
|
|
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(
|
|
40
|
+
console.log("Hello from SimtrainEcoMiniAppJsSdk !!!");
|
|
27
41
|
}
|
|
28
42
|
}
|