Skip to content

Commit

Permalink
Fixing linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nandan-bhat committed Aug 2, 2024
1 parent 1792956 commit 29bbad3
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
6 changes: 4 additions & 2 deletions src/tools/auth0/handlers/scimHandler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Asset } from '../../../types';
import log from '../../../logger';
import { PromisePoolExecutor } from 'promise-pool-executor';
import { BaseAuth0APIClient } from '../../../types';
import { ConfigFunction } from '../../../configFactory';

interface IdMapValue {
strategy: string;
Expand All @@ -25,8 +27,8 @@ interface ScimScopes { read: boolean; create: boolean; update: boolean; delete:
export default class ScimHandler {
private idMap: Map<string, IdMapValue>;
private readonly scimStrategies = ['samlp', 'oidc', 'okta', 'waad'];
private config: any;
private connectionsManager: any;
private config: ConfigFunction;
private connectionsManager: BaseAuth0APIClient['connections'];
private scimScopes: ScimScopes = { read: true, create: true, update: true, delete: true };
private scopeMethodMap = {
get: 'read',
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export type BaseAuth0APIClient = {
connections: APIClientBaseFunctions & {
get: (arg0: Asset) => Promise<Asset>;
getAll: (arg0: PagePaginationParams | CheckpointPaginationParams) => Promise<Asset[]>;
create: (arg0: Asset) => Promise<Asset>;
};
customDomains: APIClientBaseFunctions & {
getAll: () => Promise<Asset[]>;
Expand Down
2 changes: 1 addition & 1 deletion test/context/yaml/context.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ describe('#YAML context validation', () => {
},
],
}),
_getRestClient: (path) => ({})
_getRestClient: () => ({})
}
}
);
Expand Down
2 changes: 1 addition & 1 deletion test/tools/auth0/handlers/connections.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe('#connections handler', () => {
update: () => Promise.resolve([]),
delete: () => Promise.resolve([]),
getAll: () => [],
_getRestClient: (path) => ({}),
_getRestClient: () => ({}),
},
clients: {
getAll: () => [],
Expand Down
2 changes: 1 addition & 1 deletion test/tools/auth0/handlers/themes.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
const { omit, cloneDeep } = require('lodash');
const { default: ThemesHandler } = require('../../../../src/tools/auth0/handlers/themes');
chai.use(chaiAsPromised);

chai.use(chaiAsPromised);
const { expect, assert } = chai;

function stub() {
Expand Down
2 changes: 1 addition & 1 deletion test/tools/auth0/validator.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('#schema validation tests', () => {
},
connections: {
getAll: async () => ({ connections: [] }),
_getRestClient: (path) => ({}),
_getRestClient: () => ({}),
},
resourceServers: {
getAll: async () => ({ resource_servers: [] }),
Expand Down
2 changes: 1 addition & 1 deletion test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function mockMgmtClient() {
hooks: { getAll: () => ({ hooks: [] }) },
actions: { getAll: () => ({ actions: [] }) },
databases: { getAll: () => ({ databases: [] }) },
connections: { getAll: () => ({ connections: [] }), _getRestClient: (path) => ({}) },
connections: { getAll: () => ({ connections: [] }), _getRestClient: () => ({}) },
resourceServers: { getAll: () => ({ resourceServers: [] }) },
rulesConfigs: { getAll: () => ({ rulesConfigs: [] }) },
emailProvider: {
Expand Down

0 comments on commit 29bbad3

Please sign in to comment.