baasic-sdk-javascript
Version:
JavaScript SDK provides core functionality for building web and mobile applications on [Baasic](http://www.baasic.com/).
71 lines (70 loc) • 4.32 kB
TypeScript
/**
* @module calendarEventRsvpAttendeeStatusBatchClient
* @description CalendarEventRsvpAttendeeStatusBatchClient provides an easy way to consume CalendarEventRsvpAttendeeStatusBatch REST API end-points. In order to obtain needed routes `calendarEventRsvpAttendeeStatusBatchClient` uses `calendarEventRsvpAttendeeStatusBatchRoute`.
*/
import { ApiClient, IHttpResponse } from '../../../../httpApi';
import { CalendarEventRsvpAttendeeStatusBatchRoute } from '../../';
import { ICalendarEventRsvpAttendeeStatus } from '../../contracts';
export declare class CalendarEventRsvpAttendeeStatusBatchClient {
protected calendarEventRsvpAttendeeStatusBatchRoute: CalendarEventRsvpAttendeeStatusBatchRoute;
protected apiClient: ApiClient;
readonly routeDefinition: CalendarEventRsvpAttendeeStatusBatchRoute;
constructor(calendarEventRsvpAttendeeStatusBatchRoute: CalendarEventRsvpAttendeeStatusBatchRoute, apiClient: ApiClient);
/**
* Returns a promise that is resolved once the create CalendarEventRsvpAttendeeStatuses action has been performed. This action creates new CalendarEventRsvpAttendeeStatus resources.
* @method
* @param data CalendarEventRsvpAttendeeStatus objects that need to be inserted into the system.
* @returns A promise that is resolved once the create CalendarEventRsvpAttendeeStatuses action has been performed.
* @example calendarEventRsvpAttendeeStatusBatchClient.create([{
abrv: '<abrv>',
json: '<json>',
name: '<name>'
}])
.then(function (data) {
// perform success action here
},
function (response, status, headers, config) {
// perform error handling here
});
*/
create(data: ICalendarEventRsvpAttendeeStatus[]): PromiseLike<IHttpResponse<ICalendarEventRsvpAttendeeStatus[]>>;
/**
* Returns a promise that is resolved once the update CalendarEventRsvpAttendeeStatuses action has been performed. This action updates CalendarEventRsvpAttendeeStatus resources.
* @method
* @param data CalendarEventRsvpAttendeeStatus objects used to update specified CalendarEventRsvpAttendeeStatus resources.
* @returns A promise that is resolved once the update CalendarEventRsvpAttendeeStatuses action has been performed.
* @example calendarEventRsvpAttendeeStatuses are resources previously fetched using get action.
calendarEventRsvpAttendeeStatusBatchClient.update(calendarEventRsvpAttendeeStatuses)
.then(function (data) {
// perform success action here
},
function (response, status, headers, config) {
// perform error handling here
});
*/
update(data: ICalendarEventRsvpAttendeeStatus[]): PromiseLike<IHttpResponse<void>>;
/**
* Returns a promise that is resolved once the remove action has been performed. This action will remove CalendarEventRsvpAttendeeStatus resources from the system if successfully completed.
* @method
* @param data CalendarEventRsvpAttendeeStatus Ids which uniquely identify CalendarEventRsvpAttendeeStatus resources to be deleted.
* @returns A promise that is resolved once the remove action has been performed.
* @example calendarEventRsvpAttendeeStatusIds are identifiers which uniquely identify CalendarEventRsvpAttendeeStatus resources.
calendarEventRsvpAttendeeStatusBatchClient.remove(calendarEventRsvpAttendeeStatusIds)
.then(function (data) {
// perform success action here
},
function (response, status, headers, config) {
// perform error handling here
});
*/
remove(data: string[]): PromiseLike<IHttpResponse<void>>;
}
/**
* @copyright (c) 2017 Mono Ltd
* @license MIT
* @author Mono Ltd
* @overview
***Notes:**
- Refer to the [Baasic REST API](http://dev.baasic.com/api/reference/home) for detailed information about available Baasic REST API end-points.
- All end-point objects are transformed by the associated route definition.
*/