14 lines
1.1 KiB
TypeScript
14 lines
1.1 KiB
TypeScript
import { UserCustomActionAddResult, UserCustomActionUpdateResult } from '@pnp/sp/src/usercustomactions';
|
|
import { IUserCustomActionService } from './IUserCustomActionService';
|
|
import { UserCustomActionScope } from './UserCustomActionScope';
|
|
import { IUserCustomActionProps } from './IUserCustomActionProps';
|
|
import { ApplicationCustomizerContext } from '@microsoft/sp-application-base';
|
|
export declare class UserCustomActionService implements IUserCustomActionService {
|
|
constructor(context: ApplicationCustomizerContext);
|
|
getUserCustomActions(scope: UserCustomActionScope, listId?: string): Promise<IUserCustomActionProps[]>;
|
|
getUserCustomActionById(scope: UserCustomActionScope, id: string, listId?: string): Promise<IUserCustomActionProps>;
|
|
addUserCustomAction(scope: UserCustomActionScope, customAction: IUserCustomActionProps, listId?: string): Promise<UserCustomActionAddResult>;
|
|
updateUserCustomAction(scope: UserCustomActionScope, id: string, props: {}, listId?: string): Promise<UserCustomActionUpdateResult>;
|
|
deleteUserCustomAction(scope: UserCustomActionScope, customAction: IUserCustomActionProps, listId?: string): Promise<void>;
|
|
}
|