// This is Generated Source. import PostGlipFile from "../definitions/PostGlipFile"; import PathSegment from "../PathSegment"; export default class Files extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("files", id, prv, service); } /** *

Since 1.0.31 (Release 9.2)

Posts a file.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Heavy

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

Since 1.0.31 (Release 9.2)

Posts a file.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Heavy

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

Since 1.0.31 (Release 9.2)

Returns a file.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Medium

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

Since 1.0.31 (Release 9.2)

Returns a file.

Required Permissions

PermissionDescription
GlipAvailability of Glip

API Group

Medium

* return {ApiResponse} */ getRaw(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }); } } export interface PostQuery { /** * Internal identifier of a group the post with file attached will be added to */ groupId?: string; }