import CreateSubscriptionRequest from "../definitions/CreateSubscriptionRequest"; import ModifySubscriptionRequest from "../definitions/ModifySubscriptionRequest"; import RecordsCollectionResourceSubscriptionResponse from "../definitions/RecordsCollectionResourceSubscriptionResponse"; import SubscriptionInfo from "../definitions/SubscriptionInfo"; import PathSegment from "../PathSegment"; import Renew from "./Renew"; export default class Subscription extends PathSegment { constructor(prv: PathSegment, id?: string, service?: any); /** * */ renew(id?: string): Renew; /** * */ list(): Promise; /** * * return {ApiResponse} */ listRaw(): Promise; /** *

Since 1.0.6 (Release 5.15)

Creates a new subscription.

Usage Plan Group

Medium

*/ post(body: CreateSubscriptionRequest): Promise; /** *

Since 1.0.6 (Release 5.15)

Creates a new subscription.

Usage Plan Group

Medium

* return {ApiResponse} */ postRaw(body: CreateSubscriptionRequest): Promise; /** *

Since 1.0.6 (Release 5.15)

Returns the requested subscription.

Usage Plan Group

Light

*/ get(): Promise; /** *

Since 1.0.6 (Release 5.15)

Returns the requested subscription.

Usage Plan Group

Light

* return {ApiResponse} */ getRaw(): Promise; /** *

Since 1.0.6 (Release 5.15)

Renews the existent subscription if the request body is empty. If event filters are specified, calling this method modifies the event filters for the existing subscription. The client application can extend or narrow the events for which it receives notifications in the frame of one subscription.

Usage Plan Group

Medium

*/ put(body: ModifySubscriptionRequest, query?: PutQuery): Promise; /** *

Since 1.0.6 (Release 5.15)

Renews the existent subscription if the request body is empty. If event filters are specified, calling this method modifies the event filters for the existing subscription. The client application can extend or narrow the events for which it receives notifications in the frame of one subscription.

Usage Plan Group

Medium

* return {ApiResponse} */ putRaw(body: ModifySubscriptionRequest, query?: PutQuery): Promise; /** *

Cancels the existent subscription.

Usage Plan Group

Medium

*/ delete(): Promise; /** *

Cancels the existent subscription.

Usage Plan Group

Medium

* return {ApiResponse} */ deleteRaw(): Promise; } export interface PutQuery { /** * If 'True' then aggregated presence status is returned in a notification payload */ aggregated?: boolean; }