@getjones/test-infra 1.0.9 → 1.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getjones/test-infra",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Providing internal and openapi interface",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -7,11 +7,10 @@ const init = conf => {
7
7
 
8
8
  const accountsCore = require('./internal-api/accounts/core/accounts.core.setup');
9
9
  const accountsSettings = require('./internal-api/accounts/settings/settings.setup');
10
- const accountsOpenAPI = require('./internal-api/accounts/openapi/accounts.openapi.setup');
11
10
 
12
11
  const projects = require('./internal-api/projects/projects.setup');
13
12
 
14
- const accounts = { accountsCore, accountsSettings, accountsOpenAPI, ...accountsCore };
13
+ const accounts = { accountsCore, accountsSettings, ...accountsCore };
15
14
 
16
15
  const internalAPI = { auth, accounts, projects };
17
16
  return { internalAPI };
@@ -1,12 +0,0 @@
1
- const requests = require('../../common/requests');
2
- const { backendUrl } = require('../../../env').getEnv();
3
-
4
- const Endpoints = {
5
- assignApiKey: accountId => `${backendUrl}/saas/accounts/${accountId}/api-keys`,
6
- };
7
-
8
- const assignApiKey = async (accountId, data, context) => {
9
- return requests.postRequestHandler(Endpoints.assignApiKey(accountId), data, context).then(res => res.data);
10
- };
11
-
12
- module.exports = { assignApiKey };
@@ -1,27 +0,0 @@
1
- const accountsAPI = require('./accounts.openapi.api');
2
- const { apiKey } = require('../../../../../../src/accounts/openapi/test.config');
3
-
4
- const assignApiKey = async (accountId, apiKey, context) => {
5
- const data = { 'apiKey': apiKey };
6
- return accountsAPI.assignApiKey(accountId, data, context);
7
- };
8
-
9
- const getApiKeyByAccountId = async (accountId, context) => {
10
-
11
- };
12
-
13
- const removeApiKey = async (accountId, context) => {
14
-
15
- };
16
-
17
- const getOrAssignApiKey = async (accountId, apiKey, context) => {
18
-
19
- };
20
-
21
- module.exports = {
22
- assignApiKey,
23
- getApiKeyByAccountId,
24
- removeApiKey,
25
- getOrAssignApiKey
26
- };
27
-