UNPKG

@simplito/privmx-webendpoint

Version:

PrivMX Web Endpoint library

88 lines (85 loc) 3.7 kB
"use strict"; /*! PrivMX Web Endpoint. Copyright © 2024 Simplito sp. z o.o. This file is part of the PrivMX Platform (https://privmx.dev). This software is Licensed under the PrivMX Free License. See the License for the specific language governing permissions and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.StoreApiNative = void 0; const BaseNative_1 = require("./BaseNative"); class StoreApiNative extends BaseNative_1.BaseNative { async newApi(connectionPtr) { return this.runAsync((taskId) => this.api.lib.StoreApi_newStoreApi(taskId, connectionPtr)); } async deleteApi(ptr) { await this.runAsync((taskId) => this.api.lib.StoreApi_deleteStoreApi(taskId, ptr)); this.deleteApiRef(); } async create(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_create(taskId, ptr, args)); } async createStore(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_createStore(taskId, ptr, args)); } async updateStore(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_updateStore(taskId, ptr, args)); } async deleteStore(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_deleteStore(taskId, ptr, args)); } async getStore(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_getStore(taskId, ptr, args)); } async listStores(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_listStores(taskId, ptr, args)); } async createFile(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_createFile(taskId, ptr, args)); } async updateFile(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_updateFile(taskId, ptr, args)); } async updateFileMeta(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_updateFileMeta(taskId, ptr, args)); } async writeToFile(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_writeToFile(taskId, ptr, args)); } async deleteFile(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_deleteFile(taskId, ptr, args)); } async getFile(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_getFile(taskId, ptr, args)); } async listFiles(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_listFiles(taskId, ptr, args)); } async openFile(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_openFile(taskId, ptr, args)); } async readFromFile(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_readFromFile(taskId, ptr, args)); } async seekInFile(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_seekInFile(taskId, ptr, args)); } async closeFile(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_closeFile(taskId, ptr, args)); } async syncFile(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_syncFile(taskId, ptr, args)); } async subscribeFor(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_subscribeFor(taskId, ptr, args)); } async unsubscribeFrom(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_unsubscribeFrom(taskId, ptr, args)); } async buildSubscriptionQuery(ptr, args) { return this.runAsync((taskId) => this.api.lib.StoreApi_buildSubscriptionQuery(taskId, ptr, args)); } } exports.StoreApiNative = StoreApiNative;