UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

97 lines (96 loc) 3.58 kB
import { AirtableCommentNotificationsAPIV4Api } from '../generated'; export class AirtableCommentNotifications { constructor(config) { const api = new AirtableCommentNotificationsAPIV4Api(config); this.list = new AirtableCommentNotificationsList(api); this.create = new AirtableCommentNotificationsCreate(api); this.update = new AirtableCommentNotificationsUpdate(api); this.delete = new AirtableCommentNotificationsDelete(api); this.markAsRead = new AirtableCommentNotificationsMarkAsRead(api); } } export class AirtableCommentNotificationsList { constructor(api) { this.api = api; } /** * all - get /v4/airtable-comment-notifications */ all(options) { return this.api.v4AirtableCommentNotificationsControllerGetNotificationsV4({ ...options }); } /** * one - get /v4/airtable-comment-notifications/{notificationId} */ one(notificationId, options) { return this.api.v4AirtableCommentNotificationsControllerGetNotificationV4({ notificationId, ...options }); } /** * withView - get /v4/airtable-comment-notifications/viewId/{viewId} */ withView(viewId, options) { return this.api.v4AirtableCommentNotificationsControllerGetNotificationsInViewV4({ viewId, ...options }); } /** * oneWithColumns - get /v4/airtable-comment-notifications/{notificationId}/{columns} */ oneWithColumns(notificationId, columns, options) { return this.api.v4AirtableCommentNotificationsControllerGetNotificationColumnsV4({ notificationId, columns, ...options }); } /** * withFilters - get /v4/airtable-comment-notifications/filteredBy/{column}/{value} */ withFilters(column, value, options) { return this.api.v4AirtableCommentNotificationsControllerGetNotificationsFilteredByV4({ column, value, ...options }); } } export class AirtableCommentNotificationsCreate { constructor(api) { this.api = api; } /** * one - post /v4/airtable-comment-notifications */ one(body) { return this.api.v4AirtableCommentNotificationsControllerCreateNotificationV4({ v4AirtableCommentNotificationsCreateNotificationBodyDto: body }); } } export class AirtableCommentNotificationsUpdate { constructor(api) { this.api = api; } /** * one - patch /v4/airtable-comment-notifications/{notificationId} */ one(notificationId, body) { return this.api.v4AirtableCommentNotificationsControllerUpdateNotificationV4({ notificationId, v4AirtableCommentNotificationsUpdateNotificationBodyDto: { notification: body } }); } } export class AirtableCommentNotificationsDelete { constructor(api) { this.api = api; } /** * one - delete /v4/airtable-comment-notifications/{notificationId} */ one(notificationId, options) { return this.api.v4AirtableCommentNotificationsControllerDeleteNotificationV4({ notificationId, ...options }); } } export class AirtableCommentNotificationsMarkAsRead { constructor(api) { this.api = api; } /** * one - put /v4/airtable-comment-notifications/{notificationId}/read */ one(notificationId, body) { return this.api.v4AirtableCommentNotificationsControllerMarkNotificationAsReadV4({ notificationId, ...body }); } /** * all - put /v4/airtable-comment-notifications/read-all */ all() { return this.api.v4AirtableCommentNotificationsControllerMarkAllNotificationsAsReadV4({}); } }