@workerbase/sdk
Advanced tools
Comparing version 0.1.16-beta.3 to 0.1.16-beta.4
@@ -1,5 +0,2 @@ | ||
import WorkerbaseFunction, { FunctionsSDK } from './resources/WorkerbaseFunction'; | ||
export interface Resources { | ||
functions: FunctionsSDK; | ||
} | ||
import WorkerbaseFunction from './resources/WorkerbaseFunction'; | ||
declare const _default: { | ||
@@ -6,0 +3,0 @@ functions: typeof WorkerbaseFunction; |
@@ -1,16 +0,4 @@ | ||
import { WorkerbaseFunction, WorkerbaseFunctionPOST, WorkerbaseFunctionPUT } from '../types/Function'; | ||
import { ListOptions } from '../types/pagination'; | ||
import { ArrayPromiseWithMethods } from '../utils/addArrayMethods'; | ||
import { BasicMethodTypes } from '../utils/basicMethods/BasicMethodTypes'; | ||
import { API } from '../Workerbase'; | ||
export interface FunctionsSDK extends BasicMethodTypes<{ | ||
GET: WorkerbaseFunction; | ||
POST: WorkerbaseFunctionPOST; | ||
PUT: WorkerbaseFunctionPUT; | ||
}> { | ||
deploy: (functionId: string) => Promise<{ | ||
success: boolean; | ||
}>; | ||
invoke: (functionId: string, payload: any) => Promise<any>; | ||
} | ||
export default class { | ||
@@ -17,0 +5,0 @@ _api: API; |
@@ -1,2 +0,2 @@ | ||
import { Resources } from './resources'; | ||
import WorkerbaseFunction from './resources/WorkerbaseFunction'; | ||
export interface AuthOptions { | ||
@@ -11,3 +11,3 @@ token: string | undefined; | ||
} | ||
export interface WorkerbaseSDK extends Resources { | ||
export interface WorkerbaseSDK { | ||
_api: API; | ||
@@ -19,2 +19,3 @@ PACKAGE_VERSION: string; | ||
_api: API; | ||
functions: WorkerbaseFunction; | ||
constructor(); | ||
@@ -21,0 +22,0 @@ auth(config?: AuthOptions): void; |
{ | ||
"name": "@workerbase/sdk", | ||
"version": "0.1.16-beta.3", | ||
"version": "0.1.16-beta.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
164721
2479