UNPKG

@appsemble/lang-sdk

Version:

Language SDK for Appsemble

23 lines 915 B
import { BaseActionDefinition } from './BaseActionDefinition.js'; import { extendJSONSchema } from '../utils/extendJSONSchema.js'; export const ResourceSubscriptionUnsubscribeActionDefinition = extendJSONSchema(BaseActionDefinition, { type: 'object', additionalProperties: false, required: ['type', 'resource'], properties: { type: { enum: ['resource.subscription.unsubscribe'], description: 'Unsubscribe from notifications on resource modifications.', }, resource: { type: 'string', description: 'The type of the resource to unsubscribe from.', }, action: { enum: ['create', 'delete', 'update'], description: 'The resource action type to unsubscribe from.', default: 'update', }, }, }); //# sourceMappingURL=ResourceSubscriptionUnsubscribeActionDefinition.js.map