From 95d5f86aa793893d682f1927f9153569f30c6486 Mon Sep 17 00:00:00 2001 From: harshithad0703 Date: Tue, 7 Nov 2023 16:35:15 +0530 Subject: [PATCH] changing folder name to be same as class name --- .jsdoc.json | 5 +++-- lib/organization/index.js | 2 +- lib/organization/{team => teams}/index.js | 2 +- .../stackRoleMapping => teams/stackRoleMappings}/index.js | 0 lib/organization/{team => teams}/teamUsers/index.js | 0 test/unit/team-stack-role-mapping-test.js | 2 +- test/unit/team-test.js | 2 +- test/unit/team-users-test.js | 2 +- 8 files changed, 8 insertions(+), 7 deletions(-) rename lib/organization/{team => teams}/index.js (98%) rename lib/organization/{team/stackRoleMapping => teams/stackRoleMappings}/index.js (100%) rename lib/organization/{team => teams}/teamUsers/index.js (100%) diff --git a/.jsdoc.json b/.jsdoc.json index d0d78b59..c0363440 100644 --- a/.jsdoc.json +++ b/.jsdoc.json @@ -33,8 +33,9 @@ "lib/stack/webhook/index.js", "lib/stack/workflow/index.js", "lib/stack/workflow/publishRules/index.js", - "lib/organization/team/stackRoleMapping/index.js̀" - + "lib/organization/teams/index.js", + "lib/organization/teams/stackRoleMappings/index.js", + "lib/organization/teams/teamUsers/index.js" ], "excludePattern": "(node_modules/|jsdocs)" }, diff --git a/lib/organization/index.js b/lib/organization/index.js index fb55bcf7..725bd65a 100644 --- a/lib/organization/index.js +++ b/lib/organization/index.js @@ -7,7 +7,7 @@ import { StackCollection } from '../stack' import { UserCollection } from '../user' import { App } from '../app' import { AppRequest } from '../app/request' -import { Teams } from './team' +import { Teams } from './teams' /** * Organization is the top-level entity in the hierarchy of Contentstack, consisting of stacks and stack resources, and users. Organization allows easy management of projects as well as users within the Organization. Read more about Organizations.. * @namespace Organization diff --git a/lib/organization/team/index.js b/lib/organization/teams/index.js similarity index 98% rename from lib/organization/team/index.js rename to lib/organization/teams/index.js index b3a6bb7f..15475389 100644 --- a/lib/organization/team/index.js +++ b/lib/organization/teams/index.js @@ -6,7 +6,7 @@ import { fetchAll } from '../../entity' import { TeamUsers } from './teamUsers' -import { StackRoleMappings } from './stackRoleMapping' +import { StackRoleMappings } from './stackRoleMappings' import error from '../../core/contentstackError' export function Teams (http, data) { diff --git a/lib/organization/team/stackRoleMapping/index.js b/lib/organization/teams/stackRoleMappings/index.js similarity index 100% rename from lib/organization/team/stackRoleMapping/index.js rename to lib/organization/teams/stackRoleMappings/index.js diff --git a/lib/organization/team/teamUsers/index.js b/lib/organization/teams/teamUsers/index.js similarity index 100% rename from lib/organization/team/teamUsers/index.js rename to lib/organization/teams/teamUsers/index.js diff --git a/test/unit/team-stack-role-mapping-test.js b/test/unit/team-stack-role-mapping-test.js index b7c2e4fa..14dff3b2 100644 --- a/test/unit/team-stack-role-mapping-test.js +++ b/test/unit/team-stack-role-mapping-test.js @@ -2,7 +2,7 @@ import Axios from 'axios' import { expect } from 'chai' import { describe, it } from 'mocha' import MockAdapter from 'axios-mock-adapter' -import { StackRoleMappings } from '../../lib/organization/team/stackRoleMapping' +import { StackRoleMappings } from '../../lib/organization/teams/stackRoleMappings' import { stackRoleMappingMock } from './mock/objects' describe('Contentstack Team Stack Role Mapping test', () => { diff --git a/test/unit/team-test.js b/test/unit/team-test.js index 2ff96cce..9c2ee28c 100644 --- a/test/unit/team-test.js +++ b/test/unit/team-test.js @@ -2,7 +2,7 @@ import Axios from 'axios' import { expect } from 'chai' import { describe, it } from 'mocha' import MockAdapter from 'axios-mock-adapter' -import { Teams } from '../../lib/organization/team' +import { Teams } from '../../lib/organization/teams' import { systemUidMock, teamsMock, noticeMock } from './mock/objects' describe('Contentstack Team test', () => { diff --git a/test/unit/team-users-test.js b/test/unit/team-users-test.js index 63302d9c..5bb9a4f1 100644 --- a/test/unit/team-users-test.js +++ b/test/unit/team-users-test.js @@ -2,7 +2,7 @@ import Axios from 'axios' import { expect } from 'chai' import { describe, it } from 'mocha' import MockAdapter from 'axios-mock-adapter' -import { TeamUsers } from '../../lib/organization/team/teamUsers' +import { TeamUsers } from '../../lib/organization/teams/teamUsers' import { teamUsersMock, noticeMock } from './mock/objects' describe('Contentstack Team Users test', () => {