@friggframework/api-module-frigg-scale-test 0.2.0-next.2 → 0.2.0-next.4
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/defintion.js +26 -1
- package/package.json +3 -2
package/dist/defintion.js
CHANGED
|
@@ -6,9 +6,34 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const api_1 = __importDefault(require("./api"));
|
|
7
7
|
const definition = {
|
|
8
8
|
API: api_1.default,
|
|
9
|
-
getName: () => "
|
|
9
|
+
getName: () => "scale-test",
|
|
10
10
|
moduleName: "scale-test",
|
|
11
11
|
requiredAuthMethods: {
|
|
12
|
+
getAuthorizationRequirements: (api) => {
|
|
13
|
+
return {
|
|
14
|
+
type: "apiKey",
|
|
15
|
+
data: {
|
|
16
|
+
jsonSchema: {
|
|
17
|
+
title: "Scale Test API Authorization",
|
|
18
|
+
type: "object",
|
|
19
|
+
required: ["apiKey"],
|
|
20
|
+
properties: {
|
|
21
|
+
apiKey: {
|
|
22
|
+
type: "string",
|
|
23
|
+
title: "API Key",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
uiSchema: {
|
|
28
|
+
apiKey: {
|
|
29
|
+
"ui:widget": "password",
|
|
30
|
+
"ui:help": "Your Scale Test API key",
|
|
31
|
+
"ui:placeholder": "Enter your API key...",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
},
|
|
12
37
|
getToken: async (api, params) => {
|
|
13
38
|
// For scale test API, use API key authentication
|
|
14
39
|
const apiKey = params.data?.apiKey || params.data?.access_token;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/api-module-frigg-scale-test",
|
|
3
|
-
"version": "0.2.0-next.
|
|
3
|
+
"version": "0.2.0-next.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"@friggframework/core": "^1.0.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
+
"@types/aws-lambda": "^8.10.156",
|
|
22
23
|
"@types/jest": "^29.5.0",
|
|
23
24
|
"@types/node": "^20.8.0",
|
|
24
25
|
"jest": "^29.7.0",
|
|
@@ -28,5 +29,5 @@
|
|
|
28
29
|
"publishConfig": {
|
|
29
30
|
"access": "public"
|
|
30
31
|
},
|
|
31
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "c887560a49cc6ead493d565fa1b924788c39855c"
|
|
32
33
|
}
|