heimdall-api-platform 1.0.33 → 1.0.35
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/lib/clients/http-client.js +1 -0
- package/dist/lib/commons-cache.js +1 -0
- package/dist/lib/commons-const.js +1 -0
- package/dist/lib/commons-elasticsearch.js +1 -0
- package/dist/lib/commons-errors.js +1 -0
- package/dist/lib/commons-opensearch.js +1 -0
- package/dist/lib/commons-splunk.js +1 -0
- package/dist/lib/commons-util.js +1 -0
- package/dist/lib/default-routes-docs.js +1 -0
- package/dist/lib/default-routes-pos.js +1 -0
- package/dist/lib/default-routes-pre.js +1 -0
- package/dist/lib/environment.js +1 -0
- package/dist/lib/factory/api-gateway.js +1 -0
- package/dist/lib/factory/client-factory.js +1 -0
- package/dist/lib/factory/function-factory.js +1 -0
- package/dist/lib/factory/operation-flow-factory.js +1 -0
- package/dist/lib/factory/server-factory.js +1 -0
- package/dist/lib/factory/transformation-function-factory.js +1 -0
- package/dist/lib/handle-route.js +1 -0
- package/dist/lib/index.js +2 -0
- package/dist/lib/jwt-util.js +1 -0
- package/dist/lib/license/license-service.js +1 -0
- package/dist/lib/models/base-context.js +1 -0
- package/dist/lib/models/elastic-index-data.js +1 -0
- package/dist/lib/models/flow-context.js +1 -0
- package/dist/lib/models/flow-indexed.js +1 -0
- package/dist/lib/models/operation-function-indexed.js +1 -0
- package/dist/lib/models/operation-function-transformation-indexed.js +1 -0
- package/dist/lib/models/operation-http-indexed.js +1 -0
- package/dist/lib/models/operation-mock-indexed.js +1 -0
- package/dist/lib/models/route-context.js +1 -0
- package/dist/lib/models/security-route.js +1 -0
- package/dist/lib/models/service-context.js +1 -0
- package/dist/lib/models/service-group.js +1 -0
- package/dist/lib/models/service-route.js +1 -0
- package/dist/lib/models/splunk-data.js +1 -0
- package/dist/lib/operations/abstract-operation.js +1 -0
- package/dist/lib/operations/function.js +1 -0
- package/dist/lib/operations/http.js +1 -0
- package/dist/lib/operations/mock.js +1 -0
- package/dist/lib/operations/monitor-check.js +1 -0
- package/dist/lib/orchestration-flow.js +1 -0
- package/dist/lib/router.js +1 -0
- package/dist/lib/security-validation.js +1 -0
- package/dist/lib/services/server.js +1 -0
- package/dist/lib/services/template-monitorcheck-route.js +1 -0
- package/dist/public/redoc.html +152 -0
- package/dist/public/swagger.html +143 -0
- package/package.json +6 -29
- package/dist/index.js +0 -7
@@ -0,0 +1,152 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="pt-BR">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8" />
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7
|
+
<title>Documentação da API | Pay2B</title>
|
8
|
+
|
9
|
+
<link rel="icon" href="https://pay2b.com.br/favicon.ico" type="image/x-icon" />
|
10
|
+
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
|
11
|
+
|
12
|
+
<style>
|
13
|
+
html,
|
14
|
+
body {
|
15
|
+
margin: 0;
|
16
|
+
padding: 0;
|
17
|
+
height: 100%;
|
18
|
+
font-family: "Segoe UI", Tahoma, sans-serif;
|
19
|
+
background-color: #f9fafc;
|
20
|
+
color: #333;
|
21
|
+
}
|
22
|
+
|
23
|
+
.navbar {
|
24
|
+
background-color: #1f2d3d;
|
25
|
+
color: #fff;
|
26
|
+
padding: 12px 24px;
|
27
|
+
display: flex;
|
28
|
+
align-items: center;
|
29
|
+
justify-content: space-between;
|
30
|
+
}
|
31
|
+
|
32
|
+
.navbar__logo {
|
33
|
+
display: flex;
|
34
|
+
align-items: center;
|
35
|
+
}
|
36
|
+
|
37
|
+
.navbar__logo img {
|
38
|
+
height: 36px;
|
39
|
+
margin-right: 12px;
|
40
|
+
}
|
41
|
+
|
42
|
+
.navbar__title {
|
43
|
+
font-size: 18px;
|
44
|
+
font-weight: bold;
|
45
|
+
}
|
46
|
+
|
47
|
+
#redoc-container {
|
48
|
+
height: calc(100% - 120px);
|
49
|
+
/* espaço reservado para navbar e footer */
|
50
|
+
}
|
51
|
+
|
52
|
+
.pay2b-footer {
|
53
|
+
background-color: #1f2d3d;
|
54
|
+
color: #fff;
|
55
|
+
padding: 20px 40px;
|
56
|
+
font-size: 14px;
|
57
|
+
}
|
58
|
+
|
59
|
+
.footer__container {
|
60
|
+
display: flex;
|
61
|
+
align-items: center;
|
62
|
+
justify-content: space-between;
|
63
|
+
flex-wrap: wrap;
|
64
|
+
}
|
65
|
+
|
66
|
+
.footer__left {
|
67
|
+
display: flex;
|
68
|
+
align-items: center;
|
69
|
+
}
|
70
|
+
|
71
|
+
.footer__logo {
|
72
|
+
height: 28px;
|
73
|
+
}
|
74
|
+
|
75
|
+
.footer__right {
|
76
|
+
display: flex;
|
77
|
+
flex-wrap: wrap;
|
78
|
+
align-items: center;
|
79
|
+
gap: 12px;
|
80
|
+
font-weight: 400;
|
81
|
+
}
|
82
|
+
|
83
|
+
.footer__right a {
|
84
|
+
color: #fff;
|
85
|
+
text-decoration: none;
|
86
|
+
transition: opacity 0.2s;
|
87
|
+
}
|
88
|
+
|
89
|
+
.footer__right a:hover {
|
90
|
+
opacity: 0.75;
|
91
|
+
}
|
92
|
+
|
93
|
+
.sep {
|
94
|
+
color: #999;
|
95
|
+
}
|
96
|
+
</style>
|
97
|
+
</head>
|
98
|
+
|
99
|
+
<body>
|
100
|
+
|
101
|
+
<!-- Navbar -->
|
102
|
+
<div class="navbar">
|
103
|
+
<div class="navbar__logo">
|
104
|
+
<img src="https://cdn-email.s3.us-east-1.amazonaws.com/images/pay2b-logo-header.png" alt="Pay2B Logo" />
|
105
|
+
<span class="navbar__title">Documentação da API</span>
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
|
109
|
+
<!-- ReDoc container -->
|
110
|
+
<div id="redoc-container"></div>
|
111
|
+
|
112
|
+
<!-- Footer -->
|
113
|
+
<footer class="pay2b-footer">
|
114
|
+
<div class="footer__container">
|
115
|
+
<div class="footer__left">
|
116
|
+
<img src="https://cdn-email.s3.us-east-1.amazonaws.com/images/pay2b-logo-header.png" alt="Pay2B"
|
117
|
+
class="footer__logo" />
|
118
|
+
</div>
|
119
|
+
<div class="footer__right">
|
120
|
+
<a href="https://www.linkedin.com/company/pay2b" target="_blank" rel="noopener noreferrer">LinkedIn</a>
|
121
|
+
<span class="sep">|</span>
|
122
|
+
<a href="https://pay2b.com.br/termos" target="_blank">Termos e Condições</a>
|
123
|
+
<span class="sep">|</span>
|
124
|
+
<a href="https://www.pay2b.com.br/politica-de-privacidade" target="_blank">Política de Privacidade</a>
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
</footer>
|
128
|
+
|
129
|
+
<!-- Redoc script -->
|
130
|
+
<script>
|
131
|
+
Redoc.init('/docs/openapi.yaml', {
|
132
|
+
theme: {
|
133
|
+
colors: {
|
134
|
+
primary: {
|
135
|
+
main: '#5B2C6F'
|
136
|
+
}
|
137
|
+
},
|
138
|
+
typography: {
|
139
|
+
fontFamily: 'Segoe UI, Tahoma, sans-serif',
|
140
|
+
headings: {
|
141
|
+
fontWeight: 'bold'
|
142
|
+
}
|
143
|
+
}
|
144
|
+
},
|
145
|
+
scrollYOffset: 60,
|
146
|
+
hideDownloadButton: false,
|
147
|
+
expandResponses: '200,201'
|
148
|
+
}, document.getElementById('redoc-container'));
|
149
|
+
</script>
|
150
|
+
</body>
|
151
|
+
|
152
|
+
</html>
|
@@ -0,0 +1,143 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="pt-BR">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8" />
|
6
|
+
<title>Pay2B API Reference</title>
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
8
|
+
|
9
|
+
<link rel="icon" href="https://pay2b.com.br/favicon.ico" type="image/x-icon" />
|
10
|
+
|
11
|
+
<!-- Swagger UI assets -->
|
12
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swagger-ui-dist/swagger-ui.css" />
|
13
|
+
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist/swagger-ui-bundle.js"></script>
|
14
|
+
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist/swagger-ui-standalone-preset.js"></script>
|
15
|
+
|
16
|
+
<style>
|
17
|
+
html,
|
18
|
+
body {
|
19
|
+
margin: 0;
|
20
|
+
padding: 0;
|
21
|
+
font-family: "Segoe UI", Roboto, sans-serif;
|
22
|
+
background-color: #f5f6fa;
|
23
|
+
}
|
24
|
+
|
25
|
+
.header {
|
26
|
+
background-color: #1f2d3d;
|
27
|
+
color: white;
|
28
|
+
padding: 16px 32px;
|
29
|
+
display: flex;
|
30
|
+
align-items: center;
|
31
|
+
justify-content: space-between;
|
32
|
+
}
|
33
|
+
|
34
|
+
.header-left {
|
35
|
+
display: flex;
|
36
|
+
align-items: center;
|
37
|
+
}
|
38
|
+
|
39
|
+
.header-left img {
|
40
|
+
height: 36px;
|
41
|
+
margin-right: 12px;
|
42
|
+
}
|
43
|
+
|
44
|
+
.header-left h1 {
|
45
|
+
font-size: 20px;
|
46
|
+
margin: 0;
|
47
|
+
font-weight: 600;
|
48
|
+
}
|
49
|
+
|
50
|
+
#swagger-ui {
|
51
|
+
margin: 0 auto;
|
52
|
+
max-width: 1400px;
|
53
|
+
padding: 24px;
|
54
|
+
background-color: white;
|
55
|
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
|
56
|
+
}
|
57
|
+
|
58
|
+
footer {
|
59
|
+
background-color: #1f2d3d;
|
60
|
+
color: white;
|
61
|
+
padding: 20px 32px;
|
62
|
+
display: flex;
|
63
|
+
justify-content: space-between;
|
64
|
+
align-items: center;
|
65
|
+
flex-wrap: wrap;
|
66
|
+
font-size: 14px;
|
67
|
+
}
|
68
|
+
|
69
|
+
footer .footer-left img {
|
70
|
+
height: 26px;
|
71
|
+
}
|
72
|
+
|
73
|
+
footer .footer-right {
|
74
|
+
display: flex;
|
75
|
+
gap: 16px;
|
76
|
+
}
|
77
|
+
|
78
|
+
footer .footer-right a {
|
79
|
+
color: #fff;
|
80
|
+
text-decoration: none;
|
81
|
+
}
|
82
|
+
|
83
|
+
footer .footer-right a:hover {
|
84
|
+
opacity: 0.8;
|
85
|
+
}
|
86
|
+
|
87
|
+
@media (max-width: 768px) {
|
88
|
+
|
89
|
+
.header,
|
90
|
+
footer {
|
91
|
+
flex-direction: column;
|
92
|
+
align-items: flex-start;
|
93
|
+
gap: 12px;
|
94
|
+
}
|
95
|
+
|
96
|
+
#swagger-ui {
|
97
|
+
padding: 12px;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
</style>
|
101
|
+
</head>
|
102
|
+
|
103
|
+
<body>
|
104
|
+
|
105
|
+
<div class="header">
|
106
|
+
<div class="header-left">
|
107
|
+
<img src="https://cdn-email.s3.us-east-1.amazonaws.com/images/pay2b-logo-header.png" alt="Pay2B Logo" />
|
108
|
+
<h1>API Reference</h1>
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
|
112
|
+
<div id="swagger-ui"></div>
|
113
|
+
|
114
|
+
<footer>
|
115
|
+
<div class="footer-left">
|
116
|
+
<img src="https://cdn-email.s3.us-east-1.amazonaws.com/images/pay2b-logo-header.png" alt="Pay2B Logo" />
|
117
|
+
</div>
|
118
|
+
<div class="footer-right">
|
119
|
+
<a href="https://www.linkedin.com/company/pay2b" target="_blank">LinkedIn</a>
|
120
|
+
<a href="https://www.instagram.com/pay2b.oficial" target="_blank">Instagram</a>
|
121
|
+
<a href="https://www.pay2b.com.br/politica-de-privacidade" target="_blank">Política de privacidade</a>
|
122
|
+
</div>
|
123
|
+
</footer>
|
124
|
+
|
125
|
+
<script>
|
126
|
+
window.onload = () => {
|
127
|
+
SwaggerUIBundle({
|
128
|
+
url: "/docs/openapi.yaml",
|
129
|
+
dom_id: "#swagger-ui",
|
130
|
+
deepLinking: true,
|
131
|
+
presets: [
|
132
|
+
SwaggerUIBundle.presets.apis,
|
133
|
+
SwaggerUIStandalonePreset
|
134
|
+
],
|
135
|
+
layout: "StandaloneLayout",
|
136
|
+
docExpansion: "none",
|
137
|
+
operationsSorter: "alpha"
|
138
|
+
});
|
139
|
+
};
|
140
|
+
</script>
|
141
|
+
</body>
|
142
|
+
|
143
|
+
</html>
|
package/package.json
CHANGED
@@ -1,21 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "heimdall-api-platform",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.35",
|
4
4
|
"description": "",
|
5
|
-
"main": "dist/index.js",
|
5
|
+
"main": "dist/lib/index.js",
|
6
6
|
"license": "MIT",
|
7
7
|
"files": [
|
8
|
-
"dist
|
9
|
-
"LICENSE",
|
10
|
-
"README.md",
|
11
|
-
"package.json"
|
8
|
+
"dist"
|
12
9
|
],
|
13
10
|
"scripts": {
|
14
11
|
"prestart": "npm install",
|
15
12
|
"test": "mocha --timeout 5000 'test/**/*.test.js'",
|
16
13
|
"test:watch": "nodemon --exec 'npm test'",
|
14
|
+
"clean": "rimraf dist",
|
17
15
|
"start": "node server.js",
|
18
|
-
"build": "
|
16
|
+
"build": "npm run clean && node obfuscate-and-prepare.js",
|
19
17
|
"prepublishOnly": "npm run build"
|
20
18
|
},
|
21
19
|
"repository": {
|
@@ -66,31 +64,10 @@
|
|
66
64
|
"yaml": "^2.8.0"
|
67
65
|
},
|
68
66
|
"devDependencies": {
|
69
|
-
"@rollup/plugin-commonjs": "^28.0.6",
|
70
|
-
"@rollup/plugin-node-resolve": "^16.0.1",
|
71
67
|
"@vercel/ncc": "^0.38.3",
|
72
|
-
"chai": "^4.3.7",
|
73
68
|
"javascript-obfuscator": "^4.1.1",
|
74
69
|
"mocha": "^11.1.0",
|
75
70
|
"nodemon": "^3.1.9",
|
76
|
-
"rimraf": "^6.0.1"
|
77
|
-
"rollup": "^4.45.1",
|
78
|
-
"rollup-plugin-javascript-obfuscator": "^1.0.4",
|
79
|
-
"sinon": "^19.0.2",
|
80
|
-
"webpack": "^5.88.2",
|
81
|
-
"webpack-cli": "^5.1.4",
|
82
|
-
"webpack-node-externals": "^3.0.0"
|
83
|
-
},
|
84
|
-
"pkg": {
|
85
|
-
"assets": [],
|
86
|
-
"scripts": [
|
87
|
-
"dist/index.js"
|
88
|
-
],
|
89
|
-
"targets": [
|
90
|
-
"node20-linux-x64",
|
91
|
-
"node20-macos-x64",
|
92
|
-
"node20-win-x64"
|
93
|
-
],
|
94
|
-
"outputPath": "dist"
|
71
|
+
"rimraf": "^6.0.1"
|
95
72
|
}
|
96
73
|
}
|