@forge/kvs
1.2.7-next.0-experimental-d9973071.2.7-next.0-experimental-44a932f
out/storage-api.d.tsout/storage-api.d.ts+4−5
Index: package/out/storage-api.d.ts
===================================================================
--- package/out/storage-api.d.ts
+++ package/out/storage-api.d.ts
@@ -1,16 +1,16 @@
import { FetchMethod } from '@forge/api';
-import { GetResult, ListResult, BatchResult, SetResult } from './interfaces/types';
+import { GetResult, ListResult, BatchResult } from './interfaces/types';
import { BatchSetRequest, DeleteRequest, EntityDeleteRequest, EntityGetRequest, EntityQueryRequest, EntitySetRequest, GetRequest, QueryRequest, SecretDeleteRequest, SecretGetRequest, SecretSetRequest, SetRequest, TransactionRequest } from './interfaces/kvs-api';
export declare class StorageApi {
private apiClient;
constructor(apiClient: FetchMethod);
get<T>(body: GetRequest): Promise<T | GetResult<T> | undefined>;
getSecret<T>(body: SecretGetRequest): Promise<T | GetResult<T> | undefined>;
getEntity<T>(body: EntityGetRequest): Promise<T | GetResult<T> | undefined>;
- set<T, U = T>(body: SetRequest<T>): Promise<SetResult<U> | undefined>;
- setSecret<T, U = T>(body: SecretSetRequest<T>): Promise<SetResult<U> | undefined>;
- setEntity<T, U = T>(body: EntitySetRequest<T>): Promise<SetResult<U> | undefined>;
+ set<T>(body: SetRequest<T>): Promise<void>;
+ setSecret<T>(body: SecretSetRequest<T>): Promise<void>;
+ setEntity<T>(body: EntitySetRequest<T>): Promise<void>;
delete(body: DeleteRequest): Promise<void>;
deleteSecret(body: SecretDeleteRequest): Promise<void>;
deleteEntity(body: EntityDeleteRequest): Promise<void>;
query<T>(body: QueryRequest): Promise<ListResult<T>>;
@@ -19,7 +19,6 @@
transact<T>(transactionRequest: TransactionRequest<T>): Promise<void>;
private handleKeyNotFound;
private request;
private processGetResponse;
- private processSetResponse;
}
//# sourceMappingURL=storage-api.d.ts.map
\ No newline at end of file