Skip to content

Commit

Permalink
Discard changes to src/services/circles.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Oct 17, 2023
1 parent 19f836e commit b047bf3
Showing 1 changed file with 20 additions and 23 deletions.
43 changes: 20 additions & 23 deletions src/services/circles.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
import { MemberLevel, MemberType } from '../models/constants';
import { MemberLevel, MemberType } from '../models/constants'
interface MemberPairs {
id: string;
type: MemberType;
}
type CircleEditType = 'name' | 'description' | 'settings' | 'config';
export declare enum CircleEdit {
Name = "name",
Description = "description",
Settings = "settings",
Config = "config"
Name = 'name',
Description = 'description',
Settings = 'settings',
Config = 'config'
}
interface CircleSetting {
setting: string;
Expand All @@ -40,84 +40,81 @@ interface CircleSetting {
*
* @return {Array}
*/
export declare const getCircles: () => Promise<any>;
export declare const getCircles: () => Promise<any>
/**
* Get a specific circle
*
* @param {string} circleId
* @return {object}
*/
export declare const getCircle: (circleId: string) => Promise<any>;
export declare const getCircle: (circleId: string) => Promise<any>
/**
* Create a new circle
*
* @param {string} name the circle name
* @param personal
* @param local
* @return {object}
*/
export declare const createCircle: (name: string, personal: boolean, local: boolean) => Promise<any>;
export declare const createCircle: (name: string, personal: boolean, local: boolean) => Promise<any>
/**
* Delete an existing circle
*
* @param {string} circleId the circle id
* @return {object}
*/
export declare const deleteCircle: (circleId: string) => Promise<any>;
export declare const deleteCircle: (circleId: string) => Promise<any>
/**
* Edit an existing circle
*
* @param {string} circleId the circle id
* @param {CircleEditType} type the edit type
* @param {any} data the data
* @param value
* @return {object}
*/
export declare const editCircle: (circleId: string, type: CircleEditType, value: any) => Promise<any>;
export declare const editCircle: (circleId: string, type: CircleEditType, value: any) => Promise<any>
/**
* Join a circle
*
* @param {string} circleId the circle id
* @return {Array}
*/
export declare const joinCircle: (circleId: string) => Promise<any>;
export declare const joinCircle: (circleId: string) => Promise<any>
/**
* Leave a circle
*
* @param {string} circleId the circle id
* @return {Array}
*/
export declare const leaveCircle: (circleId: string) => Promise<any>;
export declare const leaveCircle: (circleId: string) => Promise<any>
/**
* Get the circle members without the members
*
* @param {string} circleId the circle id
* @return {Array}
*/
export declare const getCircleMembers: (circleId: string) => Promise<any>;
export declare const getCircleMembers: (circleId: string) => Promise<any>
/**
* Search a potential circle member
*
* @param {string} term the search query
* @return {Array}
*/
export declare const searchMember: (term: string) => Promise<any>;
export declare const searchMember: (term: string) => Promise<any>
/**
* Add a circle member
*
* @param {string} circleId the circle id
* @param {string} members the member id
* @return {Array}
*/
export declare const addMembers: (circleId: string, members: Array<MemberPairs>) => Promise<any>;
export declare const addMembers: (circleId: string, members: Array<MemberPairs>) => Promise<any>
/**
* Delete a circle member
*
* @param {string} circleId the circle id
* @param {string} memberId the member id
* @return {Array}
*/
export declare const deleteMember: (circleId: string, memberId: string) => Promise<unknown[]>;
export declare const deleteMember: (circleId: string, memberId: string) => Promise<unknown[]>
/**
* change a member level
*
Expand All @@ -128,14 +125,14 @@ export declare const deleteMember: (circleId: string, memberId: string) => Promi
* @param {number} level the new member level
* @return {Array}
*/
export declare const changeMemberLevel: (circleId: string, memberId: string, level: MemberLevel) => Promise<unknown[]>;
export declare const changeMemberLevel: (circleId: string, memberId: string, level: MemberLevel) => Promise<unknown[]>
/**
* Accept a circle member request
*
* @param {string} circleId the circle id
* @param {string} memberId the member id
* @return {Array}
*/
export declare const acceptMember: (circleId: string, memberId: string) => Promise<any>;
export declare const editCircleSetting: (circleId: string, setting: CircleSetting) => Promise<any>;
export {};
export declare const acceptMember: (circleId: string, memberId: string) => Promise<any>
export declare const editCircleSetting: (circleId: string, setting: CircleSetting) => Promise<any>
export {}

0 comments on commit b047bf3

Please sign in to comment.