// This is Generated Source. import GlipCreateGroup from "../definitions/GlipCreateGroup"; import GlipGroupInfo from "../definitions/GlipGroupInfo"; import GlipGroupList from "../definitions/GlipGroupList"; import PathSegment from "../PathSegment"; import BulkAssign from "./BulkAssign"; import Posts from "./Posts"; export default class Groups extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("groups", id, prv, service); } /** * */ bulkAssign(id?: string) { return new BulkAssign(this, id); } /** * */ posts(id?: string) { return new Posts(this, id); } /** *

Since 1.0.28 (Release 8.4)

Returns the list of groups associated with the user.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Medium

*/ list(query?: ListQuery): Promise { return this._send({ body: undefined, ignoreId: false, method: "get", query: query, }).then((res) => { return res.json(); }); } /** *

Since 1.0.28 (Release 8.4)

Returns the list of groups associated with the user.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Medium

* return {ApiResponse} */ listRaw(query?: ListQuery): Promise { return this._send({ body: undefined, ignoreId: false, method: "get", query: query, }); } /** *

Since 1.0.28 (Release 8.4)

Creates a group.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Medium

*/ post(body: GlipCreateGroup): Promise { return this._send({ body: body, ignoreId: true, method: "post", query: undefined, }).then((res) => { return res.json(); }); } /** *

Since 1.0.28 (Release 8.4)

Creates a group.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Medium

* return {ApiResponse} */ postRaw(body: GlipCreateGroup): Promise { return this._send({ body: body, ignoreId: true, method: "post", query: undefined, }); } /** *

Since 1.0.28 (Release 8.4)

Returns a group or few groups by ID(s). Batch request is supported.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Light

*/ get(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }).then((res) => { return res.json(); }); } /** *

Since 1.0.28 (Release 8.4)

Returns a group or few groups by ID(s). Batch request is supported.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Light

* return {ApiResponse} */ getRaw(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }); } } export interface ListQuery { /** * Type of a group. 'PrivateChat' is a group of 2 members. 'Group' is a chat of 2 and more participants, the membership cannot be changed after group creation. 'Team' is a chat of 1 and more participants, the membership can be modified in future */ type?: ("PrivateChat" | "Group" | "Team")[]; /** * Token of a page to be returned, see Glip Navigation Info */ pageToken?: string; /** * Max numbers of records to be returned. The default/maximum value is 250 */ recordCount?: number; }