// This is Generated Source. import GlipCreatePost from "../definitions/GlipCreatePost"; import GlipPostInfo from "../definitions/GlipPostInfo"; import GlipPosts from "../definitions/GlipPosts"; import PathSegment from "../PathSegment"; export default class Posts extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("posts", id, prv, service); } /** *

Since 1.0.28 (Release 8.4)

Returns list of posts.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Light

*/ 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 list of posts.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Light

* 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 post.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Light

*/ post(body: GlipCreatePost): 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 post.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Light

* return {ApiResponse} */ postRaw(body: GlipCreatePost): Promise { return this._send({ body: body, ignoreId: true, method: "post", query: undefined, }); } } export interface ListQuery { /** * 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; }