From e85be9ff53e5ea900ab559b3ea1a85eb79f23c43 Mon Sep 17 00:00:00 2001 From: harshithad0703 Date: Thu, 9 Nov 2023 17:58:50 +0530 Subject: [PATCH] interface changed from User to TeamUser in types --- types/teams/index.d.ts | 14 +++++++------- types/teams/teamUsers/index.d.ts | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/types/teams/index.d.ts b/types/teams/index.d.ts index 6a8d1433..da9c8f38 100644 --- a/types/teams/index.d.ts +++ b/types/teams/index.d.ts @@ -1,13 +1,13 @@ -import { AnyProperty, SystemFields } from "../utility/fields"; +import { AnyProperty } from "../utility/fields"; import { ContentstackCollection } from '../contentstackCollection' -import { Creatable, SystemFunction } from "../utility/operations"; -import { User, Users } from "./teamUsers"; -import { StackRoleMapping, StackRoleMappings, StackRoleMappingData } from "./stackRoleMapping"; +import { Creatable } from "../utility/operations"; +import { TeamUser, TeamUsers, TeamUserData } from "./teamUsers"; +import { StackRoleMapping, StackRoleMappings, StackRoleMappingData } from "./stackRoleMappings"; export interface Team extends TeamData { update(data: TeamData, param?: { includeUserDetails?: boolean}): Promise - users(): Users - users(uid: string): User + users(): TeamUsers + users(uid: string): TeamUser stackRoleMappings(): StackRoleMappings stackRoleMappings(uid: string): StackRoleMapping fetch(): Promise @@ -21,7 +21,7 @@ export interface Teams extends Creatable { export interface TeamData extends AnyProperty { uid?: string, name?: string, - users?: any, + users?: TeamUserData | string[] | [], stackRoleMapping?: StackRoleMappingData[] | [], organizationRole?: string } diff --git a/types/teams/teamUsers/index.d.ts b/types/teams/teamUsers/index.d.ts index 7ec8feea..a992eef0 100644 --- a/types/teams/teamUsers/index.d.ts +++ b/types/teams/teamUsers/index.d.ts @@ -1,15 +1,15 @@ import { AnyProperty } from "../../utility/fields"; -export interface Users extends UserData { - add(data:UserData): Promise +export interface TeamUsers extends TeamUserData { + add(data:TeamUserData): Promise fetchAll(params?: { includeUserDetails: boolean, include_count: boolean}): Promise } -export interface User { +export interface TeamUser { remove(): Promise } -export interface UserData extends AnyProperty { +export interface TeamUserData extends AnyProperty { emails?: string[] users?: string[] }