UNPKG

@appsemble/utils

Version:

Utility functions used in Appsemble internally

32 lines (30 loc) 949 B
import { BaseActionDefinition } from './BaseActionDefinition.js'; import { extendJSONSchema } from './utils.js'; export const StorageReadActionDefinition = extendJSONSchema(BaseActionDefinition, { type: 'object', additionalProperties: false, required: ['type', 'key'], properties: { type: { enum: ['storage.read'], description: `Read data from the app’s local storage. For example: \`\`\`yaml type: storage.read key: temp storage: localStorage \`\`\` `, }, key: { $ref: '#/components/schemas/RemapperDefinition', description: 'The key of the storage entry.', }, storage: { enum: ['indexedDB', 'localStorage', 'sessionStorage', 'appStorage'], description: 'The mechanism used to read the data from.', default: 'indexedDB', }, }, }); //# sourceMappingURL=StorageReadActionDefinition.js.map